setup_logging#

API documentation for tradeexecutor.cli.log.setup_logging Python function.

setup_logging(log_level=20, in_memory_buffer=False, enable_trade_high=False)[source]#

Setup root logger and quiet some levels.

Parameters:
  • log_level (None | str | int) – Log level read from command line or environment var.

  • in_memory_buffer – Setup in-memory log buffer used to fetch log messages to the frontend.

Return type:

Logger