5.14.2. logger.CustomLogger¶
- class eminus.logger.CustomLogger(name)[source]¶
Custom logger for the usage outside of classes.
This is just a basic logger but with an added verbose property.
- Parameters:
name – Logger name.
Methods
addFilter
(filter)Add the specified filter to this handler.
addHandler
(hdlr)Add the specified handler to this logger.
callHandlers
(record)Pass a record to all relevant handlers.
critical
(msg, *args, **kwargs)Log 'msg % args' with severity 'CRITICAL'.
debug
(msg, *args, **kwargs)Log 'msg % args' with severity 'DEBUG'.
error
(msg, *args, **kwargs)Log 'msg % args' with severity 'ERROR'.
exception
(msg, *args[, exc_info])Convenience method for logging an ERROR with exception information.
fatal
(msg, *args, **kwargs)Don't use this method, use critical() instead.
filter
(record)Determine if a record is loggable by consulting all the filters.
findCaller
([stack_info, stacklevel])Find the stack frame of the caller so that we can note the source file name, line number and function name.
getChild
(suffix)Get a logger which is a descendant to this one.
getChildren
()getEffectiveLevel
()Get the effective level for this logger.
handle
(record)Call the handlers for the specified record.
hasHandlers
()See if this logger has any handlers configured.
info
(msg, *args, **kwargs)Log 'msg % args' with severity 'INFO'.
isEnabledFor
(level)Is this logger enabled for level 'level'?
log
(level, msg, *args, **kwargs)Log 'msg % args' with the integer severity 'level'.
makeRecord
(name, level, fn, lno, msg, args, ...)A factory method which can be overridden in subclasses to create specialized LogRecords.
removeFilter
(filter)Remove the specified filter from this handler.
removeHandler
(hdlr)Remove the specified handler from this logger.
setLevel
(level)Set the logging level of this logger.
warn
(msg, *args, **kwargs)warning
(msg, *args, **kwargs)Log 'msg % args' with severity 'WARNING'.
Attributes
manager
root
Verbosity level.
- property verbose¶
Verbosity level.