emit(record) Appends the record to the buffer. If shouldFlush() returns true, calls flush() to process
Logger.debug(msg, *args, **kwargs) Logs a message with level DEBUG on this logger. The msg is the message
mapPriority(levelname) Maps a logging level name to a syslog priority name. You may need to override this if you are using custom
getMessageID(record) Returns the message ID for the record. If you are using your own messages, you could do this by having
class logging.handlers.NTEventLogHandler(appname, dllname=None, logtype='Application') Returns a new instance of the
start() Starts the listener. This starts up a background thread to monitor the queue for LogRecords
class logging.handlers.BaseRotatingHandler(filename, mode, encoding=None, delay=False) The parameters are as for FileHandler
logging.setLogRecordFactory(factory) Set a callable which is used to create a LogRecord.
makePickle(record) Pickles the record’s attribute dictionary in binary format with a length prefix, and returns it ready for
encodePriority(facility, priority) Encodes the facility and priority into an integer. You can pass in strings or integers -
Page 8 of 15