log#

tradeexecutor.cli.log module.

Module description#

High-grade logging facilities.

We have a custom level logging.TRADE that we use to log trade execution to Discord and such.

Functions#

setup_discord_logging(name, webhook_url[, ...])

Setup Discord logger.

setup_logging([log_level])

Setup root logger and quiet some levels.

setup_notebook_logging([log_level])

Setup logger in notebook / backtesting environments.

setup_pytest_logging(request[, mute_requests])

Setup logger in pytest environment.