This module is part of the Python Sardana library. It defines the base classes for Sardana object
Classes
The Sardana most abstract object. It contains only two members:
Return the sardana.Manager which owns this sardana object.
Returns: | the manager which owns this pool object. |
---|---|
Return type: | sardana.Manager |
Returns this sardana object name
Returns: | this sardana object name |
---|---|
Return type: | str |
Returns this sardana object full name
Returns: | this sardana object full name |
---|---|
Return type: | str |
Returns this sardana object type.
Returns: | this sardana object type |
---|---|
Return type: | ElementType |
Returns this pool object parent.
Returns: | this objects parent |
---|---|
Return type: | SardanaBaseObject |
Returns this sardana object parent’s name.
Returns: | this objects parent |
---|---|
Return type: | str |
Returns this sardana frontend object or None if no frontend is registered
Returns: | this objects frontend |
---|---|
Return type: | object |
Returns the set of interfaces this object implements.
Returns: | The set of interfaces this object implements. |
---|---|
Return type: | class:set <sardana.sardanadefs.Interface> |
Returns the interface this object implements.
Returns: | The interface this object implements. |
---|---|
Return type: | sardana.sardanadefs.Interface |
Returns a sequence of interface names this object implements.
Returns: | The sequence of interfaces this object implements. |
---|---|
Return type: | sequence<str> |
reference to the sardana.Manager
object name
object full name
the object frontend
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 |
---|
Adds a new listener for this object.
Parameters: | listener – a listener |
---|
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 |
---|
The cleanUp. Default implementation does nothing Overwrite when necessary
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 |
---|
Returns True if anybody is listening to events from this object
Returns: | True is at least one listener is listening or False otherwise |
---|
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 |
---|
Removes an existing listener for this object.
Parameters: | listener – the listener to be removed |
---|---|
Returns: | True is succeeded or False otherwise |
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: |
|
---|