Home | History | Annotate | Download | only in logging

Lines Matching defs:Handler

31            'FATAL', 'FileHandler', 'Filter', 'Formatter', 'Handler', 'INFO',
208 #Handlers, and so might arbitrary user threads. Since Handler code updates the
691 Add the specified filter to this handler.
698 Remove the specified filter from this handler.
727 # Handler classes and functions
730 _handlers = weakref.WeakValueDictionary() #map of handler names to handlers
735 Remove a handler reference from the internal cleanup list.
750 def _addHandlerRef(handler):
752 Add a handler to the internal cleanup list using a weak reference.
756 _handlerList.append(weakref.ref(handler, _removeHandlerRef))
760 class Handler(Filterer):
762 Handler instances dispatch logging events to specific destinations.
764 The base handler class. Acts as a placeholder which defines the Handler
778 # Add the handler to the global _handlerList (for cleanup on shutdown)
823 Set the logging level of this handler. level must be an int or a str.
848 'by Handler subclasses')
854 Emission depends on filters which may have been added to the handler.
870 Set the formatter for this handler.
885 Tidy up any resources used by the handler.
887 This version removes the handler from an internal map of handlers,
888 _handlers, which is used for handler lookup by name. Subclasses
909 You could, however, replace this with a custom handler if you wish.
949 class StreamHandler(Handler):
951 A handler class which writes logging records, appropriately formatted,
960 Initialize the handler.
964 Handler.__init__(self)
1010 A handler class which writes formatted logging records to disk files.
1026 #Handler constructor to set level, formatter, lock etc.
1027 Handler.__init__(self)
1049 # prevent a handler leak when delay is set
1081 sys.stderr at handler construction time.
1085 Initialize the handler.
1087 Handler.__init__(self, level)
1456 Add the specified handler to this logger.
1467 Remove the specified handler from this logger.
1481 logger hierarchy. Return True if a handler was found, else False.
1503 logger hierarchy. If no handler was found, output a one-off error
1723 add the handler to the root logger.
1732 format Use the specified format string for the handler.
1743 handlers, which will be added to the root handler. Any handler
1751 when the handler is closed.
1825 has no handlers, call basicConfig() to add a console handler with a
1837 no handlers, call basicConfig() to add a console handler with a pre-defined
1848 a console handler with a pre-defined format.
1855 no handlers, call basicConfig() to add a console handler with a pre-defined
1870 no handlers, call basicConfig() to add a console handler with a pre-defined
1880 no handlers, call basicConfig() to add a console handler with a pre-defined
1890 the logger has no handlers, call basicConfig() to add a console handler
1937 # Null handler
1939 class NullHandler(Handler):
1941 This handler does nothing. It's intended to be used to avoid the