Logging¶
loggers
¶
PrintLogger(name, enabled=True)
¶
Simple logger that writes timestamped messages to stdout or a file.
Outputs to settings.REUSABLE_PRINT_LOGGER_FILE_PATH if configured,
otherwise prints to stdout. Debug messages require settings.DEBUG
or settings.PRINT_LOGGER_DEBUG to be True.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
name
|
Logger name included in all output lines. |
required | |
enabled
|
If False, all log calls are silently ignored. |
True
|