logging.Handler.release()

Handler.release() Releases the thread lock acquired with acquire().

logging.Handler.handleError()

Handler.handleError(record) This method should be called from handlers when an exception is encountered during an emit() call. If the module-level attribute raiseExceptions is False, exceptions get silently ignored. This is what is mostly wanted for a logging system - most users will not care about errors in the logging system, they are more interested in application errors. You could, however, replace this with a custom handler if you wish. The specified record is the one which was being pr

logging.Handler.handle()

Handler.handle(record) Conditionally emits the specified logging record, depending on filters which may have been added to the handler. Wraps the actual emission of the record with acquisition/release of the I/O thread lock.

logging.Handler.format()

Handler.format(record) Do formatting for a record - if a formatter is set, use it. Otherwise, use the default formatter for the module.

logging.Handler.flush()

Handler.flush() Ensure all logging output has been flushed. This version does nothing and is intended to be implemented by subclasses.

logging.Handler.filter()

Handler.filter(record) Applies this handler’s filters to the record and returns a true value if the record is to be processed. The filters are consulted in turn, until one of them returns a false value. If none of them return a false value, the record will be emitted. If one returns a false value, the handler will not emit the record.

logging.Handler.emit()

Handler.emit(record) Do whatever it takes to actually log the specified logging record. This version is intended to be implemented by subclasses and so raises a NotImplementedError.

logging.Handler.createLock()

Handler.createLock() Initializes a thread lock which can be used to serialize access to underlying I/O functionality which may not be threadsafe.

logging.Handler.close()

Handler.close() Tidy up any resources used by the handler. This version does no output but removes the handler from an internal list of handlers which is closed when shutdown() is called. Subclasses should ensure that this gets called from overridden close() methods.

logging.Handler.addFilter()

Handler.addFilter(filt) Adds the specified filter filt to this handler.