|
__init__(self,
name,
level=0)
Initialize the logger with a name and an optional level. |
source code
|
|
|
_log(self,
level,
msg,
args,
exc_info=None)
Low-level logging routine which creates a LogRecord and then calls
all the handlers of this logger to handle the record. |
source code
|
|
|
addHandler(self,
hdlr)
Add the specified handler to this logger. |
source code
|
|
|
|
|
|
|
debug(self,
msg,
*args,
**kwargs)
Log 'msg % args' with severity 'DEBUG'. |
source code
|
|
|
error(self,
msg,
*args,
**kwargs)
Log 'msg % args' with severity 'ERROR'. |
source code
|
|
|
exception(self,
msg,
*args)
Convenience method for logging an ERROR with exception
information. |
source code
|
|
|
fatal(self,
msg,
*args,
**kwargs)
Log 'msg % args' with severity 'CRITICAL'. |
source code
|
|
|
findCaller(self)
Find the stack frame of the caller so that we can note the source
file name, line number and function name. |
source code
|
|
|
|
|
|
|
info(self,
msg,
*args,
**kwargs)
Log 'msg % args' with severity 'INFO'. |
source code
|
|
|
isEnabledFor(self,
level)
Is this logger enabled for level 'level'? |
source code
|
|
|
log(self,
level,
msg,
*args,
**kwargs)
Log 'msg % args' with the integer severity 'level'. |
source code
|
|
|
makeRecord(self,
name,
level,
fn,
lno,
msg,
args,
exc_info)
A factory method which can be overridden in subclasses to create
specialized LogRecords. |
source code
|
|
|
removeHandler(self,
hdlr)
Remove the specified handler from this logger. |
source code
|
|
|
setLevel(self,
level)
Set the logging level of this logger. |
source code
|
|
|
warn(self,
msg,
*args,
**kwargs)
Log 'msg % args' with severity 'WARNING'. |
source code
|
|
|
|
Inherited from Filterer :
addFilter ,
filter ,
removeFilter
|