Ft.Server.Server.Lib.LogUtil

Modules

os  threading  types   
sys  time     

Classes

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

Data and other non-method functions defined here:

__doc__ = None
__module__ = 'Ft.Server.Server.Lib.LogUtil'
str(object) -> string

Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
class NullLogger
alert(self, msg)
critical(self, msg)
debug(self, msg)
emergency(self, msg)
error(self, msg)
info(self, msg)
notice(self, msg)
warning(self, msg)

Data and other non-method functions defined here:

__doc__ = None
__module__ = 'Ft.Server.Server.Lib.LogUtil'
str(object) -> string

Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
class StreamLogger
__init__(self, logger, priority)
flush(self)
write(self, str)

Data and other non-method functions defined here:

__doc__ = None
__module__ = 'Ft.Server.Server.Lib.LogUtil'
str(object) -> string

Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
class ThreadSafeFile
__init__(self, file)
__str__(self)
write(self, data)

Data and other non-method functions defined here:

__doc__ = None
__module__ = 'Ft.Server.Server.Lib.LogUtil'
str(object) -> string

Return a nice string representation of the object.
If the argument is a string, the return value is the same object.

Functions

FromString(level)

Data

LOG_ALERT = ('alert', 1)
tuple() -> an empty tuple tuple(sequence) -> tuple initialized from sequence's items

If the argument is a tuple, the return value is the same object.
LOG_CRIT = ('crit', 2)
tuple() -> an empty tuple tuple(sequence) -> tuple initialized from sequence's items

If the argument is a tuple, the return value is the same object.
LOG_DEBUG = ('debug', 7)
tuple() -> an empty tuple tuple(sequence) -> tuple initialized from sequence's items

If the argument is a tuple, the return value is the same object.
LOG_EMERG = ('emerg', 0)
tuple() -> an empty tuple tuple(sequence) -> tuple initialized from sequence's items

If the argument is a tuple, the return value is the same object.
LOG_ERR = ('error', 3)
tuple() -> an empty tuple tuple(sequence) -> tuple initialized from sequence's items

If the argument is a tuple, the return value is the same object.
LOG_ERROR = ('error', 3)
tuple() -> an empty tuple tuple(sequence) -> tuple initialized from sequence's items

If the argument is a tuple, the return value is the same object.
LOG_INFO = ('info', 6)
tuple() -> an empty tuple tuple(sequence) -> tuple initialized from sequence's items

If the argument is a tuple, the return value is the same object.
LOG_NOTICE = ('notice', 5)
tuple() -> an empty tuple tuple(sequence) -> tuple initialized from sequence's items

If the argument is a tuple, the return value is the same object.
LOG_WARN = ('warn', 4)
tuple() -> an empty tuple tuple(sequence) -> tuple initialized from sequence's items

If the argument is a tuple, the return value is the same object.
LOG_WARNING = ('warn', 4)
tuple() -> an empty tuple tuple(sequence) -> tuple initialized from sequence's items

If the argument is a tuple, the return value is the same object.
__file__ = 'build/lib.linux-ppc-2.2/Ft/Server/Server/Lib/LogUtil.py'
str(object) -> string

Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
__name__ = 'Ft.Server.Server.Lib.LogUtil'
str(object) -> string

Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
_file_locks = {}
_file_locks_lock = <thread.lock object>
A lock object is a synchronization primitive. To create a lock, call the PyThread_allocate_lock() function. Methods are:

acquire() -- lock the lock, possibly blocking until it can be obtained
release() -- unlock of the lock
locked() -- test whether the lock is currently locked

A lock is not owned by the thread that locked it; another thread may
unlock it. A thread attempting to lock a lock that it has already locked
will block until another thread unlocks it. Deadlocks may ensue.
_levels = {'alert': ('alert', 1), 'crit': ('crit', 2), 'debug': ('debug', 7), 'emerg': ('emerg', 0), 'error': ('error', 3), 'info': ('info', 6), 'notice': ('notice', 5), 'warn': ('warn', 4)}
kword = 'LOG_WARN'
str(object) -> string

Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
value = ('warn', 4)
tuple() -> an empty tuple tuple(sequence) -> tuple initialized from sequence's items

If the argument is a tuple, the return value is the same object.