webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Namespaces | Functions | Variables
planet.compat_logging Namespace Reference

Namespaces

 config
 
 handlers
 

Functions

def getLevelName (level)
 
def addLevelName (level, levelName)
 
def makeLogRecord (dict)
 
def setLoggerClass (klass)
 
def basicConfig ()
 
def getLogger (name=None)
 
def critical (msg, args, kwargs)
 
def error (msg, args, kwargs)
 
def exception (msg, args)
 
def warning (msg, args, kwargs)
 
def info (msg, args, kwargs)
 
def debug (msg, args, kwargs)
 
def disable (level)
 
def shutdown ()
 

Variables

 thread
 
 raiseExceptions
 
 CRITICAL
 
 FATAL
 
 ERROR
 
 WARNING
 
 WARN
 
 INFO
 
 DEBUG
 
 NOTSET
 
 root
 
 manager
 
 BASIC_FORMAT
 
 fatal
 
 warn
 

Function Documentation

◆ addLevelName()

def planet.compat_logging.addLevelName (   level,
  levelName 
)
Associate 'levelName' with 'level'.

This is used when converting levels to text during message formatting.

◆ basicConfig()

def planet.compat_logging.basicConfig ( )
Do basic configuration for the logging system by creating a
StreamHandler with a default Formatter and adding it to the
root logger.

◆ critical()

def planet.compat_logging.critical (   msg,
  args,
  kwargs 
)
Log a message with severity 'CRITICAL' on the root logger.

◆ debug()

def planet.compat_logging.debug (   msg,
  args,
  kwargs 
)
Log a message with severity 'DEBUG' on the root logger.

◆ disable()

def planet.compat_logging.disable (   level)
Disable all logging calls less severe than 'level'.

◆ error()

def planet.compat_logging.error (   msg,
  args,
  kwargs 
)
Log a message with severity 'ERROR' on the root logger.

◆ exception()

def planet.compat_logging.exception (   msg,
  args 
)
Log a message with severity 'ERROR' on the root logger,
with exception information.

◆ getLevelName()

def planet.compat_logging.getLevelName (   level)
Return the textual representation of logging level 'level'.

If the level is one of the predefined levels (CRITICAL, ERROR, WARNING,
INFO, DEBUG) then you get the corresponding string. If you have
associated levels with names using addLevelName then the name you have
associated with 'level' is returned. Otherwise, the string
"Level %s" % level is returned.

◆ getLogger()

def planet.compat_logging.getLogger (   name = None)
Return a logger with the specified name, creating it if necessary.

If no name is specified, return the root logger.

◆ info()

def planet.compat_logging.info (   msg,
  args,
  kwargs 
)
Log a message with severity 'INFO' on the root logger.

◆ makeLogRecord()

def planet.compat_logging.makeLogRecord (   dict)
Make a LogRecord whose attributes are defined by the specified dictionary,
This function is useful for converting a logging event received over
a socket connection (which is sent as a dictionary) into a LogRecord
instance.

◆ setLoggerClass()

def planet.compat_logging.setLoggerClass (   klass)
Set the class to be used when instantiating a logger. The class should
define __init__() such that only a name argument is required, and the
__init__() should call Logger.__init__()

◆ shutdown()

def planet.compat_logging.shutdown ( )
Perform any cleanup actions in the logging system (e.g. flushing
buffers).

Should be called at application exit.

◆ warning()

def planet.compat_logging.warning (   msg,
  args,
  kwargs 
)
Log a message with severity 'WARNING' on the root logger.

Variable Documentation

◆ BASIC_FORMAT

planet.compat_logging.BASIC_FORMAT

◆ CRITICAL

planet.compat_logging.CRITICAL

◆ DEBUG

planet.compat_logging.DEBUG

◆ ERROR

planet.compat_logging.ERROR

◆ FATAL

planet.compat_logging.FATAL

◆ fatal

planet.compat_logging.fatal

◆ INFO

planet.compat_logging.INFO

◆ manager

planet.compat_logging.manager

◆ NOTSET

planet.compat_logging.NOTSET

◆ raiseExceptions

planet.compat_logging.raiseExceptions

◆ root

planet.compat_logging.root

◆ thread

planet.compat_logging.thread

◆ WARN

planet.compat_logging.WARN

◆ warn

planet.compat_logging.warn

◆ WARNING

planet.compat_logging.WARNING