Table of contents  |  Index  

Module log4py

class Logger
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 = 8
int LOGLEVEL_NONE = 1
int LOGLEVEL_NORMAL = 2
int LOGLEVEL_VERBOSE = 4
dictionary LOG_COLORS = {1: [37, 30, 'FALSE'], 2: [37, 30, 'FALSE'], 4: [37, 30, 'TRUE'], 8: [37, 30, 'FALSE']}
dictionary LOG_LEVELS = {'DEBUG': 8, 'NONE': 1, 'NORMAL': 2, 'VERBOSE': 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
string SECTION_DEFAULT = 'Default'
string TRUE = 'TRUE'
int WHITE = 37
int YELLOW = 33
string __file__ = '/home/preisl/Software/Log4Py/log4py.py'
alias ClassType = class (type type)
alias FileType = file (type type)
alias InstanceType = instance (type type)
alias StringType = string (type type)

Description

Python logging module - Version 0.7.1

Loglevels:

LOGLEVEL_NONE, 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.
%L
Log type (Error, Warning, Debug or Info)
%M
The actual message.
%N
The current line number.
%T
Current time.
%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 0.7.1