pi_portal.modules.configuration.logging.json
JsonLoggerConfiguration class.
- class pi_portal.modules.configuration.logging.json.JsonLoggerConfiguration[source]
JSON logging configuration.
- configure(log, file_name=None)
Configure application logging.
- Parameters:
log (
Logger) – The logger instance to configure.file_name (
Optional[str], default:None) – The path to write logs to, none for stdout.
- Return type:
None
- configure_handler(log, file_name)
Configure the logger’s handler.
- Parameters:
log (
Logger) – The logger instance to configure.file_name (
Optional[str]) – The path to write logs to, none for stdout.
- Return type:
None