MigrationLogger
class MigrationLogger(name)
Bases: NonGenericLoggerBase
Migration Logger implementation.
__init__(name)
Default init.
Args: : name: Name of the logger
Returns: None.
- Return type: None
Methods
IsEnabled (log_level) |
Checks if the given log level" is enabled. |
---|---|
Log (log_level, event_id, state, exception, ...) |
Writes a log entry with a pre-formatted state object. |
__init__ (name) |
Default init. |
IsEnabled(log_level)
Checks if the given log level” is enabled.
Args: : log_level: Level to be checked.
Returns: True if enabled
Log(log_level, event_id, state, exception, message)
Writes a log entry with a pre-formatted state object.
Args: : log_level: Entry will be written on this level. event_id: Id of the event. state: The pre-formatted entry to be written. exception: The exception related to this entry. message: The pre-formatted message to write.