compass.utilities.logs.LogListener#
- class LogListener(logger_names, level='INFO')[source]#
Bases:
object
Class to listen to logging queue and write logs to files
- Parameters:
Methods
addHandler
(handler)Add a handler to the queue listener
removeHandler
(handler)Remove a handler from the queue listener
- addHandler(handler)[source]#
Add a handler to the queue listener
Logs that are sent to the queue will be emitted to the handler.
- Parameters:
handler (
logging.Handler
) – Log handler to parse log records.
- removeHandler(handler)[source]#
Remove a handler from the queue listener
Logs that are sent to the queue will no longer be emitted to the handler.
- Parameters:
handler (
logging.Handler
) – Log handler to remove from queue listener.