Participer au site avec un Tip
Rechercher
 

Améliorations / Corrections

Vous avez des améliorations (ou des corrections) à proposer pour ce document : je vous remerçie par avance de m'en faire part, cela m'aide à améliorer le site.

Emplacement :

Description des améliorations :

Module « logging » Python 3.11.3

Classe « Logger »

Informations générales

Héritage

builtins.object
    Filterer
        Logger

Définition

class Logger(Filterer):

help(Logger)

    Instances of the Logger class represent a single logging channel. A
    "logging channel" indicates an area of an application. Exactly how an
    "area" is defined is up to the application developer. Since an
    application can have any number of areas, logging channels are identified
    by a unique string. Application areas can be nested (e.g. an area
    of "input processing" might include sub-areas "read CSV files", "read
    XLS files" and "read Gnumeric files"). To cater for this natural nesting,
    channel names are organized into a namespace hierarchy where levels are
    separated by periods, much like the Java or Python package namespace. So
    in the instance given above, channel names might be "input" for the upper
    level, and "input.csv", "input.xls" and "input.gnu" for the sub-levels.
    There is no arbitrary limit to the depth of nesting.
    

Constructeur(s)

Signature du constructeur Description
__init__(self, name, level=0)

Liste des attributs statiques

Nom de l'attribut Valeur
manager<logging.Manager object at 0x7f720e0fd350>
root<RootLogger root (WARNING)>

Liste des opérateurs

Opérateurs hérités de la classe object

__eq__, __ge__, __gt__, __le__, __lt__, __ne__

Liste des méthodes

Toutes les méthodes Méthodes d'instance Méthodes statiques Méthodes dépréciées
Signature de la méthodeDescription
__reduce__(self)
__repr__(self)
addHandler(self, hdlr)
callHandlers(self, record)
critical(self, msg, *args, **kwargs)
debug(self, msg, *args, **kwargs)
error(self, msg, *args, **kwargs)
exception(self, msg, *args, exc_info=True, **kwargs)
fatal(self, msg, *args, **kwargs)
findCaller(self, stack_info=False, stacklevel=1)
getChild(self, suffix)
getEffectiveLevel(self)
handle(self, record)
hasHandlers(self)
info(self, msg, *args, **kwargs)
isEnabledFor(self, level)
log(self, level, msg, *args, **kwargs)
makeRecord(self, name, level, fn, lno, msg, args, exc_info, func=None, extra=None, sinfo=None)
removeHandler(self, hdlr)
setLevel(self, level)
warn(self, msg, *args, **kwargs)
warning(self, msg, *args, **kwargs)

Méthodes héritées de la classe Filterer

__init_subclass__, __subclasshook__, addFilter, filter, removeFilter

Méthodes héritées de la classe object

__delattr__, __dir__, __format__, __getattribute__, __getstate__, __hash__, __init_subclass__, __reduce_ex__, __setattr__, __sizeof__, __str__, __subclasshook__