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).

__init__

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().

_log

Low-level logging routine which creates a LogRecord and then calls all the handlers of this logger to handle the record.

addFilter

Add the specified filter to this handler.

addHandler

Add the specified handler to this logger.

callHandlers

Pass a record to all relevant handlers.

critical

Log 'msg % args' with severity 'CRITICAL'.

debug

Log 'msg % args' with severity 'DEBUG'.

error

Log 'msg % args' with severity 'ERROR'.

exception

Convenience method for logging an ERROR with exception information.

fatal

Don't use this method, use critical() instead.

filter

Determine if a record is loggable by consulting all the filters.

findCaller

Find the stack frame of the caller so that we can note the source file name, line number and function name.

getChild

Get a logger which is a descendant to this one.

getEffectiveLevel

Get the effective level for this logger.

handle

Call the handlers for the specified record.

hasHandlers

See if this logger has any handlers configured.

info

Log 'msg % args' with severity 'INFO'.

isEnabledFor

Is this logger enabled for level 'level'?

log

Log 'msg % args' with the integer severity 'level'.

makeRecord

A factory method which can be overridden in subclasses to create specialized LogRecords.

removeFilter

Remove the specified filter from this handler.

removeHandler

Remove the specified handler from this logger.

setLevel

Set the logging level of this logger.

warn

warning

Log 'msg % args' with severity 'WARNING'.

__init__(name, level=0)

Initialize the logger with a name and an optional level.

Attributes

__annotations__

__dict__

__doc__

__module__

__weakref__

list of weak references to the object

manager

root

setLevel(level)[source]

Set the logging level of this logger. level must be an int or a str.

__annotations__ = {}
__doc__ = None
__module__ = 'schedula.utils.form.cli'