8.2.10.1.2. _Logger¶
- class _Logger(name, level=0)[source]¶
Methods
__delattr__Implement delattr(self, name).
__dir__Default dir() implementation.
__eq__Return self==value.
__format__Default object formatter.
__ge__Return self>=value.
__getattribute__Return getattr(self, name).
__getstate__Helper for pickle.
__gt__Return self>value.
__hash__Return hash(self).
Initialize the logger with a name and an optional level.
__init_subclass__This method is called when a class is subclassed.
__le__Return self<=value.
__lt__Return self<value.
__ne__Return self!=value.
__new____reduce__Helper for pickle.
__reduce_ex__Helper for pickle.
__repr__Return repr(self).
__setattr__Implement setattr(self, name, value).
__sizeof__Size of object in memory, in bytes.
__str__Return str(self).
__subclasshook__Abstract classes can override this to customize issubclass().
_logLow-level logging routine which creates a LogRecord and then calls all the handlers of this logger to handle the record.
addFilterAdd the specified filter to this handler.
addHandlerAdd the specified handler to this logger.
callHandlersPass a record to all relevant handlers.
criticalLog 'msg % args' with severity 'CRITICAL'.
debugLog 'msg % args' with severity 'DEBUG'.
errorLog 'msg % args' with severity 'ERROR'.
exceptionConvenience method for logging an ERROR with exception information.
fatalDon't use this method, use critical() instead.
filterDetermine if a record is loggable by consulting all the filters.
findCallerFind the stack frame of the caller so that we can note the source file name, line number and function name.
getChildGet a logger which is a descendant to this one.
getEffectiveLevelGet the effective level for this logger.
handleCall the handlers for the specified record.
hasHandlersSee if this logger has any handlers configured.
infoLog 'msg % args' with severity 'INFO'.
isEnabledForIs this logger enabled for level 'level'?
logLog 'msg % args' with the integer severity 'level'.
makeRecordA factory method which can be overridden in subclasses to create specialized LogRecords.
removeFilterRemove the specified filter from this handler.
removeHandlerRemove the specified handler from this logger.
Set the logging level of this logger.
warnwarningLog 'msg % args' with severity 'WARNING'.
- __init__(name, level=0)¶
Initialize the logger with a name and an optional level.
Attributes
__dict____weakref__list of weak references to the object
managerroot- __annotations__ = {}¶
- __doc__ = None¶
- __module__ = 'schedula.utils.form.cli'¶