logging_config.yaml
Defines logging handlers, formatters, and category routing.
Used By
src/logging_module/config.pysrc/logging_module/filters.py
Required Fields
version: 1- Standard
logging.config.dictConfigstructure
Safe Defaults
- Route auth, broker, REST, and WS errors to dedicated files.
- Keep debug logs sampled to avoid high volume.
Dangerous Values
- Writing logs to a non-writable directory.
- Logging full payloads that may contain secrets.
Example
Minimal setup (abbreviated):
version: 1
handlers:
file:
class: logging.FileHandler
filename: logs/trading.log
formatter: standard
root:
level: INFO
handlers: [file]
Scenario Example
Scenario: You see no logs on disk.
- Ensure logging_module.config.setup_logging() runs at startup.
- Confirm log_path is writable and resolved by FYERS_STORE_ROOT.