OpenStack logging handler.
This module adds to logging functionality by adding the option to specify a context object when calling the various log methods. If the context object is not specified, default formatting is used. Additionally, an instance uuid may be passed as part of the log message, which is intended to make it easier for admins to find messages related to a specific instance.
It also allows setting of formatting information through conf.
Bases: logging.LoggerAdapter
Delegate a warning call to the underlying logger, after adding contextual information from this adapter instance.
Bases: oslo_log.log.BaseLoggerAdapter
Logger adapter to add keyword arguments to log record’s extra data
Keywords passed to the log call are added to the “extra” dictionary passed to the underlying logger so they are emitted with the log message and available to the format string.
Special keywords:
Bases: exceptions.Exception
Build a logger with the given name.
Parameters: |
|
---|
Return the Oslo Logging default log levels.
Returns a copy of the list so an application can change the value and not affect the default value used in the log_opts configuration setup.
Register the command line and configuration options used by oslo.log.
Set default values for the configuration options used by oslo.log.
Setup logging for the current application.
Provide an API for tempest to set the logging filename.
Warning
Only Tempest should use this function.
We don’t want applications to set a default log file, so we don’t want this in set_defaults(). Because tempest doesn’t use a configuration file we don’t have another convenient way to safely set the log file default.
See also