4Suite API Documentation

Module Ft.Server.Server.Lib.LogUtil

Functions and classes related to message logging
Copyright 2004 Fourthought, Inc. (USA).
Detailed license and copyright information: http://4suite.org/COPYRIGHT
Project home, documentation, distributions: http://4suite.org/
Classes:
Functions:
Globals:

Classes

class Logger

Methods

__init__(self, ident, logFile, maxLevel=(6, 'info'), showPid=0)
__str__(self)
alert(self, msg, *args)
clone(self, ident, logLevel=None, showPid=None)
critical(self, msg, *args)
debug(self, msg, *args)
emergency(self, msg, *args)
error(self, msg, *args)
info(self, msg, *args)
log(self, (level, priority), message, *args)
notice(self, msg, *args)
warning(self, msg, *args)
class NullLogger

Methods

alert(self, msg, *args)
critical(self, msg, *args)
debug(self, msg, *args)
emergency(self, msg, *args)
error(self, msg, *args)
info(self, msg, *args)
notice(self, msg, *args)
warning(self, msg, *args)
class StreamLogger
A wrapper around a Logger instance which allows the log facility to be used in place of a stream object.

Methods

__init__(self, logger, priority)
flush(self)
isatty(self)
write(self, str)
class ThreadSafeFile

Methods

__init__(self, name)
__str__(self)
write(self, data)

Functions

FromString(level)

Globals

DEFAULT_LOGGER_BUFSIZE = 600
LOG_ALERT = (1, 'alert')
LOG_CRIT = (2, 'crit')
LOG_DEBUG = (7, 'debug')
LOG_EMERG = (0, 'emerg')
LOG_ERR = (3, 'error')
LOG_ERROR = (3, 'error')
LOG_INFO = (6, 'info')
LOG_NOTICE = (5, 'notice')
LOG_WARN = (4, 'warn')
LOG_WARNING = (4, 'warn')
kword = 'LOG_CRIT'
value = (2, 'crit')