setup_strategy_logging#

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

setup_strategy_logging(default_log_level=30)[source]#

Setup logging for backtesting.

This will enable logging PositionManager only.

See also tradeexecutor.strategy.pandas_trading.position_manager.PositionManager.log() for examples.

Parameters:

default_log_level (str | int) –

Return type:

Logger