Bases: taurus.core.util.object.Object
The taurus logger class. All taurus pertinent classes should inherit directly or indirectly from this class if they need taurus logging facilities.
Critical message level (constant)
Debug message level (constant)
Default log format (constant)
Default log level (constant)
Default log message format (constant)
Error message level (constant)
Info message level (constant)
Trace message level (constant)
Warning message level (constant)
Adds a new logging child
Parameters: | child (:class:~`logging.Logger`) – the new child |
---|
Registers a new log level
Parameters: |
|
---|
Registers a new handler in this object’s logger
Parameters: | handler (:class:~`logging.Handler`) – the new handler to be added |
---|
Adds a new handler to the root logger
Parameters: | h (:class:~`logging.Handler`) – the new log handler |
---|
Change the log name for this object.
Parameters: | name (:class:~`str`) – the new log name |
---|
The cleanUp. Default implementation does nothing Overwrite when necessary
Copies the log handlers of other object to this object
Parameters: | other (:class:~`object`) – object which contains ‘log_handlers’ |
---|
Record a critical message in this object’s logger. Accepted args and kwargs are the same as logging.Logger.critical().
Parameters: |
|
---|
Record a debug message in this object’s logger. Accepted args and kwargs are the same as logging.Logger.debug().
Parameters: |
|
---|
Record a deprecated warning message in this object’s logger. Accepted args and kwargs are the same as logging.Logger.warning().
Parameters: |
|
---|
Disables the logging.StreamHandler which dumps log records, by default, to the stderr.
Enables the logging.StreamHandler which dumps log records, by default, to the stderr.
Record an error message in this object’s logger. Accepted args and kwargs are the same as logging.Logger.error().
Parameters: |
|
---|
Log a message with severity ‘ERROR’ on the root logger, with exception information.. Accepted args are the same as logging.Logger.exception().
Parameters: |
|
---|
Flushes the log output
Returns the log children for this object
Return type: | :class:~`sequence<logging.Logger` |
---|---|
Returns: | the list of log children |
Retuns the current log message format (the root log format)
Return type: | :class:~`str` |
---|---|
Returns: | the log message format |
Gets the full log name for this object
Return type: | :class:~`str` |
---|---|
Returns: | the full log name |
Retuns the current log level (the root log level)
Return type: | :class:~`int` |
---|---|
Returns: | a number representing the log level |
Gets the log name for this object
Return type: | :class:~`str` |
---|---|
Returns: | the log name |
Returns the log object for this object
Return type: | :class:~`logging.Logger` |
---|---|
Returns: | the log object |
Returns the log parent for this object or None if no parent exists
Return type: | :class:~`logging.Logger` or :class:~`None` |
---|---|
Returns: | the log parent for this object |
Retuns the root logger
Return type: | :class:~`logging.Logger` |
---|---|
Returns: | the root logger |
Record an info message in this object’s logger. Accepted args and kwargs are the same as logging.Logger.info().
Parameters: |
|
---|
Class method to initialize the root logger. Do NOT call this method directly in your code
Record a log message in this object’s logger. Accepted args and kwargs are the same as logging.Logger.log().
Parameters: |
|
---|
Default log message format
Current global log level
Removes the given handler from the root logger
Parameters: | h (:class:~`logging.Handler`) – the handler to be removed |
---|
Resets the log message format (the root log format)
Resets the log level (the root log level)
Internal usage
Internal usage
sets the new log message format
Parameters: | level (:class:~`str`) – the new log message format |
---|
sets the new log level (the root log level)
Parameters: | level (:class:~`int`) – the new log level |
---|
Log the usual stack information, followed by a listing of all the local variables in each frame.
Parameters: | target (:class:~`int`) – the log level assigned to the record |
---|---|
Return type: | :class:~`str` |
Returns: | The stack string representation |
the main stream handler
Synchronises the log output
Record a trace message in this object’s logger. Accepted args and kwargs are the same as logging.Logger.log().
Parameters: |
|
---|
Log the usual traceback information, followed by a listing of all the local variables in each frame.
Parameters: |
|
---|---|
Return type: | :class:~`str` |
Returns: | The traceback string representation |
Record a warning message in this object’s logger. Accepted args and kwargs are the same as logging.Logger.warning().
Parameters: |
|
---|