logging.Filter.filter()

filter(record) Is the specified record to be logged? Returns zero for no, nonzero for yes. If deemed appropriate, the record may be modified in-place by this method.

logging.Filter

class logging.Filter(name='') Returns an instance of the Filter class. If name is specified, it names a logger which, together with its children, will have its events allowed through the filter. If name is the empty string, allows every event. filter(record) Is the specified record to be logged? Returns zero for no, nonzero for yes. If deemed appropriate, the record may be modified in-place by this method.

logging.FileHandler.emit()

emit(record) Outputs the record to the file.

logging.FileHandler.close()

close() Closes the file.

logging.FileHandler

class logging.FileHandler(filename, mode='a', encoding=None, delay=False) Returns a new instance of the FileHandler class. The specified file is opened and used as the stream for logging. If mode is not specified, 'a' is used. If encoding is not None, it is used to open the file with that encoding. If delay is true, then file opening is deferred until the first call to emit(). By default, the file grows indefinitely. close() Closes the file. emit(record) Outputs the record to the fi

logging.exception()

logging.exception(msg, *args, **kwargs) Logs a message with level ERROR on the root logger. The arguments are interpreted as for debug(). Exception info is added to the logging message. This function should only be called from an exception handler.

logging.error()

logging.error(msg, *args, **kwargs) Logs a message with level ERROR on the root logger. The arguments are interpreted as for debug().

logging.disable()

logging.disable(lvl) Provides an overriding level lvl for all loggers which takes precedence over the logger’s own level. When the need arises to temporarily throttle logging output down across the whole application, this function can be useful. Its effect is to disable all logging calls of severity lvl and below, so that if you call it with a value of INFO, then all INFO and DEBUG events would be discarded, whereas those of severity WARNING and above would be processed according to the logg

logging.debug()

logging.debug(msg, *args, **kwargs) Logs a message with level DEBUG on the root logger. The msg is the message format string, and the args are the arguments which are merged into msg using the string formatting operator. (Note that this means that you can use keywords in the format string, together with a single dictionary argument.) There are three keyword arguments in kwargs which are inspected: exc_info which, if it does not evaluate as false, causes exception information to be added to t

logging.critical()

logging.critical(msg, *args, **kwargs) Logs a message with level CRITICAL on the root logger. The arguments are interpreted as for debug().