webkit
2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
|
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 | |
def planet.compat_logging.addLevelName | ( | level, | |
levelName | |||
) |
Associate 'levelName' with 'level'. This is used when converting levels to text during message formatting.
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.
def planet.compat_logging.critical | ( | msg, | |
args, | |||
kwargs | |||
) |
Log a message with severity 'CRITICAL' on the root logger.
def planet.compat_logging.debug | ( | msg, | |
args, | |||
kwargs | |||
) |
Log a message with severity 'DEBUG' on the root logger.
def planet.compat_logging.disable | ( | level | ) |
Disable all logging calls less severe than 'level'.
def planet.compat_logging.error | ( | msg, | |
args, | |||
kwargs | |||
) |
Log a message with severity 'ERROR' on the root logger.
def planet.compat_logging.exception | ( | msg, | |
args | |||
) |
Log a message with severity 'ERROR' on the root logger, with exception information.
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.
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.
def planet.compat_logging.info | ( | msg, | |
args, | |||
kwargs | |||
) |
Log a message with severity 'INFO' on the root logger.
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.
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__()
def planet.compat_logging.shutdown | ( | ) |
Perform any cleanup actions in the logging system (e.g. flushing buffers). Should be called at application exit.
def planet.compat_logging.warning | ( | msg, | |
args, | |||
kwargs | |||
) |
Log a message with severity 'WARNING' on the root logger.
planet.compat_logging.BASIC_FORMAT |
planet.compat_logging.CRITICAL |
planet.compat_logging.DEBUG |
planet.compat_logging.ERROR |
planet.compat_logging.FATAL |
planet.compat_logging.fatal |
planet.compat_logging.INFO |
planet.compat_logging.manager |
planet.compat_logging.NOTSET |
planet.compat_logging.raiseExceptions |
planet.compat_logging.root |
planet.compat_logging.thread |
planet.compat_logging.WARN |
planet.compat_logging.warn |
planet.compat_logging.WARNING |