This module is part of the Python Sardana library. It defines the base classes for module manager
Classes
This class handles python module loading/reloading and unloading.
Loads the given module name. If the module has been already loaded into this python interpreter, nothing is done.
Parameters: |
|
---|---|
Returns: | python module |
Raises : | ImportError |
Adds a new logging child
Parameters: | child – (logging.Logger) the new child |
---|
Registers a new log level
Parameters: |
|
---|
Registers a new handler in this object’s logger
Parameters: | handler – (logging.Handler) the new handler to be added |
---|
Adds a new handler to the root logger
Parameters: | h – (logging.Handler) the new log handler |
---|
Method to be called from subclasses to call superclass corresponding __init__ method. This method ensures that classes from diamond like class hierarquies don’t call their super classes __init__ more than once.
Same as call__init__ but without keyword arguments because PyQT does not support them.
Change the log name for this object.
Parameters: | name – (str) the new log name |
---|
Copies the log handlers of other object to this object
Parameters: | other – (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
Returns: | (sequence<logging.Logger) the list of log children |
---|
Retuns the current log message format (the root log format)
Returns: | (str) the log message format |
---|
Gets the full log name for this object
Returns: | (str) the full log name |
---|
Retuns the current log level (the root log level)
Returns: | (int) a number representing the log level |
---|
Gets the log name for this object
Returns: | (str) the log name |
---|
Returns the log object for this object
Returns: | (logging.Logger) the log object |
---|
Returns the log parent for this object or None if no parent exists
Returns: | (logging.Logger or None) the log parent for this object |
---|
Retuns the root logger
Returns: | (logging.Logger) 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: |
|
---|
Removes the given handler from the root logger
Parameters: | h – (logging.Handler) the handler to be removed |
---|
Resets the log message format (the root log format)
Resets the log level (the root log level)
sets the new log message format
Parameters: | level – (str) the new log message format |
---|
sets the new log level (the root log level)
Parameters: | level – (int) the new log level |
---|
Log the usual stack information, followed by a listing of all the local variables in each frame.
Parameters: | target – (int) the log level assigned to the record |
---|---|
Returns: | (str) The stack string representation |
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: |
|
---|---|
Returns: | (str) 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: |
|
---|