Base.Logging¶
Classes
Severity
: Logging message severity levels.LogEntry
: Represents a single line log message with a severity and indentation level.Logger
: Undocumented.ILogable
: A mixin class to provide local logging methods.
-
class
Base.Logging.
Severity
(*_)[source]¶ Logging message severity levels.
Inheritance
Members
-
Fatal
= 30¶
-
Error
= 25¶
-
Quiet
= 20¶
-
Warning
= 15¶
-
Info
= 10¶
-
DryRun
= 5¶
-
Normal
= 4¶
-
Verbose
= 2¶
-
Debug
= 1¶
-
All
= 0¶
-
-
class
Base.Logging.
LogEntry
(message, severity=<Severity.Normal: 4>, indent=0, appendLinebreak=True)[source]¶ Represents a single line log message with a severity and indentation level.
Inheritance
Members
-
_Log_MESSAGE_FORMAT__
= {<Severity.Warning: 15>: 'WARNING: {message}', <Severity.Debug: 1>: 'DEBUG: {message}', <Severity.Quiet: 20>: '{message}', <Severity.Verbose: 2>: 'VERBOSE: {message}', <Severity.Error: 25>: 'ERROR: {message}', <Severity.Fatal: 30>: 'FATAL: {message}', <Severity.Normal: 4>: '{message}', <Severity.Info: 10>: 'INFO: {message}', <Severity.DryRun: 5>: 'DRYRUN: {message}'}¶
-
Severity
¶ Return the log message’s severity level.
-
Indent
¶ Return the log message’s indentation level.
-
Message
¶ Return the indented log message.
-
-
class
Base.Logging.
Logger
(logLevel, printToStdOut=True)[source]¶ Inheritance
Members
-
LogLevel
¶ Return the currently logged minimal severity level.
-
BaseIndent
¶
-
_Log_MESSAGE_FORMAT__
= {<Severity.Warning: 15>: '{YELLOW}{message}{NOCOLOR}', <Severity.Debug: 1>: '{DARK_GRAY}{message}{NOCOLOR}', <Severity.Quiet: 20>: '{WHITE}{message}{NOCOLOR}', <Severity.Verbose: 2>: '{GRAY}{message}{NOCOLOR}', <Severity.Error: 25>: '{RED}{message}{NOCOLOR}', <Severity.Fatal: 30>: '{DARK_RED}{message}{NOCOLOR}', <Severity.Normal: 4>: '{WHITE}{message}{NOCOLOR}', <Severity.Info: 10>: '{WHITE}{message}{NOCOLOR}', <Severity.DryRun: 5>: '{DARK_CYAN}{message}{NOCOLOR}'}¶
-