Table of contents  |  Index  

Module log4py

class FileAppender
class Logger
def get_homedirectory()
int AQUA = 36
int BLACK = 30
int BLUE = 34
dictionary CONFIGURATION_FILES = {1: 'log4py.conf', 2: '$HOME/.log4py.conf', 3: '/etc/log4py.conf'}
string FALSE = 'FALSE'
string FMT_DEBUG = '%T [%D (%d)] %L %C [%F (%N)] %x%M'
string FMT_LONG = '%T %L %C [%F] %x%M'
string FMT_MEDIUM = '[ %C.%F ] %D: %M'
string FMT_SHORT = '%M'
int GREEN = 32
int LOGLEVEL_DEBUG = 16
int LOGLEVEL_ERROR = 2
int LOGLEVEL_NONE = 1
int LOGLEVEL_NORMAL = 4
int LOGLEVEL_VERBOSE = 8
dictionary LOG_COLORS = {1: [37, 30, 'FALSE'], 2: [37, 30, 'FALSE'], 4: [37, 30, 'TRUE'], 8: [37, 30, 'FALSE']}
dictionary LOG_LEVELS = {'DEBUG': 16, 'ERROR': 2, 'NONE': 1, 'NORMAL': 4}
dictionary LOG_MSG = {1: 'DEBUG', 2: 'WARNING', 4: 'ERROR', 8: 'INFO'}
int MSG_DEBUG = 1
int MSG_ERROR = 4
int MSG_INFO = 8
int MSG_WARN = 2
int PURPLE = 35
int RED = 31
int ROTATE_DAILY = 1
int ROTATE_MONTHLY = 3
int ROTATE_NONE = 0
int ROTATE_WEEKLY = 2
string SECTION_DEFAULT = 'Default'
list SPECIAL_TARGETS = ['MySQL', 'Postgres', 'Syslog', 'sys.stdout', 'sys.stderr', 'stdout', ...]
string TARGET_MYSQL = 'MySQL'
string TARGET_POSTGRES = 'Postgres'
string TARGET_SYSLOG = 'Syslog'
string TARGET_SYS_STDERR = 'sys.stderr'
string TARGET_SYS_STDERR_ALIAS = 'stderr'
string TARGET_SYS_STDOUT = 'sys.stdout'
string TARGET_SYS_STDOUT_ALIAS = 'stdout'
string TRUE = 'TRUE'
int WHITE = 37
int YELLOW = 33
string __file__ = '/home/preisl/Software/Log4Py/log4py.py'
string mysql_available = 'FALSE'
alias ClassType = class (type type)
alias FileType = file (type type)
alias InstanceType = instance (type type)
alias StringType = string (type type)
alias TupleType = tuple (type type)

Description

Python logging module - Version 1.3

Loglevels:

LOGLEVEL_NONE, LOGLEVEL_ERROR, LOGLEVEL_NORMAL, LOGLEVEL_VERBOSE, LOGLEVEL_DEBUG

Format-Parameters:

%C
The name of the current class.
%D
Program duration since program start.
%d
Program duration for the last step (last output).
%F
The name of the current function.
%f
Current filename
%L
Log type (Error, Warning, Debug or Info)
%M
The actual message.
%N
The current line number.
%T
Current time (human readable).
%t
Current time (machine readable)
%U
Current fully qualified module/file.
%u
Current module/file.
%x
NDC (nested diagnostic contexts).

Pre-defined Formats:

FMT_SHORT
%M
FMT_MEDIUM
[ %C.%F ] %D: %M
FMT_LONG
%T %L %C [%F] %x%M
FMT_DEBUG
%T [%D (%d)] %L %C [%F (%N)] %x%M

Valid HTML 4.0! Made with CSS Martin Preishuber, Martin.Preishuber@eclipt.at
Version 1.3