ENLIGHTEN
Cross-platform desktop GUI for Wasatch Photonics spectrometers
Loading...
Searching...
No Matches
wasatch.applog.MainLogger Class Reference

Public Member Functions

 __init__ (self, log_level=logging.DEBUG, enable_stdout=True, logfile=None, timeout_sec=5, append_arg="True")
 
 close (self)
 Wrapper to add a None poison pill to the listener process queue to ensure it exits.
 
 log_configurer (self, logfile=None, append=False)
 Setup file handler and command window stream handlers.
 

Public Attributes

 enable_stdout = enable_stdout
 
 log_level = log_level
 
 log_queue = Queue()
 
 logfile = logfile
 
 root = root_logger
 
 timeout_sec = timeout_sec
 

Static Public Attributes

str FORMAT = u'%(asctime)s [0x%(thread)08x] %(name)s %(levelname)-8s %(message)s'
 

Constructor & Destructor Documentation

◆ __init__()

wasatch.applog.MainLogger.__init__ ( self,
log_level = logging.DEBUG,
enable_stdout = True,
logfile = None,
timeout_sec = 5,
append_arg = "True" )

Member Function Documentation

◆ close()

wasatch.applog.MainLogger.close ( self)

Wrapper to add a None poison pill to the listener process queue to ensure it exits.

◆ log_configurer()

wasatch.applog.MainLogger.log_configurer ( self,
logfile = None,
append = False )

Setup file handler and command window stream handlers.

Every log message received on the queue handler will use these log configurers.

Member Data Documentation

◆ enable_stdout

wasatch.applog.MainLogger.enable_stdout = enable_stdout

◆ FORMAT

str wasatch.applog.MainLogger.FORMAT = u'%(asctime)s [0x%(thread)08x] %(name)s %(levelname)-8s %(message)s'
static

◆ log_level

wasatch.applog.MainLogger.log_level = log_level

◆ log_queue

wasatch.applog.MainLogger.log_queue = Queue()

◆ logfile

wasatch.applog.MainLogger.logfile = logfile

◆ root

wasatch.applog.MainLogger.root = root_logger

◆ timeout_sec

wasatch.applog.MainLogger.timeout_sec = timeout_sec

The documentation for this class was generated from the following file: