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_custom_log_levels()

Create a new logging level TRADE that is between INFO and WARNING.

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

Setup Discord logger.

setup_logging([log_level])

Setup root logger and quiet some levels.

setup_logstash_logging(logstash_server, ...)

Setup Logstash logger.

setup_notebook_logging([log_level])

Setup logger in notebook / backtesting environments.

setup_pytest_logging([request, mute_requests])

Setup logger in pytest environment.