Table of contents  |  Index  

class Logger

Declared in module log4py

Synopsis

class Logger:
    def log4py.Logger.__Logger_ansi(self, text, messagesource) # (private) Converts plain text to ansi text. 
    def log4py.Logger.__Logger_appendconfigfiles(self, filenames) # (private) Append a filename to the list of configuration files. 
    def log4py.Logger.__Logger_cache_options(self) # (private) Read and cache debug levels for categories from config file. 
    def log4py.Logger.__Logger_collate_messages(self, messages) # (private) Create a single string from a number of messages. 
    def log4py.Logger.__Logger_find_config(self) # (private) Search for configuration files. 
    def log4py.Logger.__Logger_get_ndc(self) # (private) Returns the NDC (nested diagnostic context) joined with single-spaces. 
    def log4py.Logger.__Logger_parse_options(self, section='Default') # (private) Parse main options from config file. 
    def log4py.Logger.__Logger_set_instance_options(self, parser, section, instance) # (private) Set the options for a given instance from the parser section 
    def log4py.Logger.__Logger_setdefaults(self) # (private) Set default values for internal variables. 
    def log4py.Logger.__Logger_showmessage(self, message, messagesource) # (private) Writes a message to all targets set. 
    def log4py.Logger.__Logger_tracestack(self) # (private) Analyze traceback stack and set linenumber and functionname. 
    def log4py.Logger.__init__(self, useconfigfiles='TRUE', customconfigfiles=None) # (private) Class initalization & customization. 
    def log4py.Logger.add_target(self, target, *args) #  Add a target to the logger targets. 
    def log4py.Logger.clear_ndc(self) #  Clears all NDC messages. 
    def log4py.Logger.debug(self, *messages) #  Write a debug message. 
    def log4py.Logger.error(self, *messages) #  Write a error message. 
    def log4py.Logger.get_formatstring(self) #  Returns the current format string. 
    def log4py.Logger.get_instance(self, classid='Main', use_cache='TRUE') #  Either get the cached logger instance or create a new one
    def log4py.Logger.get_loglevel(self) #  Returns the current loglevel. 
    def log4py.Logger.get_root(self) #  Provides a way to change the base logger object's properties. 
    def log4py.Logger.get_rotation(self) #  Returns the current rotation setting. 
    def log4py.Logger.get_targets(self) #  Returns all defined targets. 
    def log4py.Logger.get_time_format(self) #  Returns the current time format. 
    def log4py.Logger.get_use_ansi_codes(self) #  Returns, wether ansi codes are being used or not. 
    def log4py.Logger.info(self, *messages) #  Write a info message. 
    def log4py.Logger.pop(self) #  Remove the topmost trace message. 
    def log4py.Logger.push(self, message) #  Add a trace message. 
    def log4py.Logger.remove_all_targets(self) #  Remove all targets from the logger targets. 
    def log4py.Logger.remove_target(self, target) #  Remove a target from the logger targets. 
    def log4py.Logger.set_formatstring(self, formatstring) #  Set a format string. 
    def log4py.Logger.set_loglevel(self, loglevel) #  Set the loglevel for the current instance. 
    def log4py.Logger.set_rotation(self, rotation) #  Set the file rotation mode to one of ROTATE_NONE, ROTATE_DAILY, ROTATE_WEEKLY, ROTATE_MONTHLY 
    def log4py.Logger.set_target(self, target) #  Set a single target. 
    def log4py.Logger.set_time_format(self, timeformat) #  Set the time format (default: loaded from the system locale). 
    def log4py.Logger.set_use_ansi_codes(self, useansicodes) #  Use ansi codes for output to the console (TRUE or FALSE). 
    def log4py.Logger.warn(self, *messages) #  Write a warning message. 

dictionary cache = {}
list configfiles = []
string hostname = 'travelmate'
None instance = None

log4py.Logger.get_instance(self, classid='Main', use_cache='TRUE')

Either get the cached logger instance or create a new one

Note that this is safe, even if you have your target set to sys.stdout or sys.stderr


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