Added new RotatedFileTransport(StreamTransport) in internal\rfc5424logging\transport.py to support an external tool rotating the log file (e.g. logrotate, logstash, etc.).
Added new file rfc5424logging_context.py and relative class LoggingContext to store structured logging context to enhance each log while keeping backward compatibility with other types of logs.
* Added additional option --loglevel and refactored log level option handling into setup_logging class to support current log format an the new introduced rfc5424 log format.
Added additional option --logformat and refactored log level option handling into setup_logging class to support. It reuse --verbose option and --log to set the log file path and verbosity. Only supports new introduced rfc5424 log format syslog.
After this PR is approved all log entries will be updated to add the new logging context.
ref 177487
RotatedFileTransport(StreamTransport)
ininternal\rfc5424logging\transport.py
to support an external tool rotating the log file (e.g. logrotate, logstash, etc.).rfc5424logging_context.py
and relative classLoggingContext
to store structured logging context to enhance each log while keeping backward compatibility with other types of logs.* Added additional option--loglevel
and refactored log level option handling intosetup_logging
class to support current log format an the new introduced rfc5424 log format.--logformat
and refactored log level option handling intosetup_logging
class to support. It reuse--verbose
option and--log
to set the log file path and verbosity. Only supports new introduced rfc5424 log formatsyslog
.After this PR is approved all log entries will be updated to add the new logging context.