logging.NullHandler.handle()

handle(record) This method does nothing.

logging.NullHandler.emit()

emit(record) This method does nothing.

logging.NullHandler.createLock()

createLock() This method returns None for the lock, since there is no underlying I/O to which access needs to be serialized.

logging.NullHandler

class logging.NullHandler Returns a new instance of the NullHandler class. emit(record) This method does nothing. handle(record) This method does nothing. createLock() This method returns None for the lock, since there is no underlying I/O to which access needs to be serialized.

logging.makeLogRecord()

logging.makeLogRecord(attrdict) Creates and returns a new LogRecord instance whose attributes are defined by attrdict. This function is useful for taking a pickled LogRecord attribute dictionary, sent over a socket, and reconstituting it as a LogRecord instance at the receiving end.

logging.LogRecord.getMessage()

getMessage() Returns the message for this LogRecord instance after merging any user-supplied arguments with the message. If the user-supplied message argument to the logging call is not a string, str() is called on it to convert it to a string. This allows use of user-defined classes as messages, whose __str__ method can return the actual format string to be used.

logging.LogRecord

class logging.LogRecord(name, level, pathname, lineno, msg, args, exc_info, func=None, sinfo=None) Contains all the information pertinent to the event being logged. The primary information is passed in msg and args, which are combined using msg % args to create the message field of the record. Parameters: name – The name of the logger used to log the event represented by this LogRecord. Note that this name will always have this value, even though it may be emitted by a handler attached to

logging.LoggerAdapter.process()

process(msg, kwargs) Modifies the message and/or keyword arguments passed to a logging call in order to insert contextual information. This implementation takes the object passed as extra to the constructor and adds it to kwargs using key ‘extra’. The return value is a (msg, kwargs) tuple which has the (possibly modified) versions of the arguments passed in.

logging.LoggerAdapter

class logging.LoggerAdapter(logger, extra) Returns an instance of LoggerAdapter initialized with an underlying Logger instance and a dict-like object. process(msg, kwargs) Modifies the message and/or keyword arguments passed to a logging call in order to insert contextual information. This implementation takes the object passed as extra to the constructor and adds it to kwargs using key ‘extra’. The return value is a (msg, kwargs) tuple which has the (possibly modified) versions of the ar

logging.Logger.warning()

Logger.warning(msg, *args, **kwargs) Logs a message with level WARNING on this logger. The arguments are interpreted as for debug(). Note There is an obsolete method warn which is functionally identical to warning. As warn is deprecated, please do not use it - use warning instead.