• Home
  • Raw
  • Download

Lines Matching full:logging

18 Configuration functions for the logging package for Python. The core package
24 To use, simply 'import logging' and log away!
29 import logging
30 import logging.handlers
46 # reconfiguration of logging.
53 Read the logging configuration from a ConfigParser-format file.
75 logging._acquireLock()
79 # Handlers add themselves to logging._handlers
83 logging._releaseLock()
116 c = logging.Formatter
139 klass = eval(klass, vars(logging))
143 args = eval(args, vars(logging))
145 kwargs = eval(kwargs, vars(logging))
153 if issubclass(klass, logging.handlers.MemoryHandler):
165 When (re)configuring logging, handle loggers which were in the previous
168 and by disabling them, you stop them doing any logging.
174 root = logging.root
178 if not isinstance(logger, logging.PlaceHolder):
179 logger.setLevel(logging.NOTSET)
194 root = logging.root
231 logger = logging.getLogger(qn)
258 #and by disabling them, you stop them doing any logging.
264 # logger.level = logging.NOTSET
274 logging._handlers.clear()
275 logging.shutdown(logging._handlerList[:])
276 del logging._handlerList[:]
489 Configure logging using a dictionary-like object to describe the
503 logging._acquireLock()
508 if name not in logging._handlers:
513 handler = logging._handlers[name]
517 handler.setLevel(logging._checkLevel(level))
595 root = logging.root
626 #and by disabling them, you stop them doing any logging.
632 # logger.level = logging.NOTSET
649 logging._releaseLock()
674 c = logging.Formatter
693 result = logging.Filter(name)
725 if issubclass(klass, logging.handlers.MemoryHandler) and\
729 if not isinstance(th, logging.Handler):
736 elif issubclass(klass, logging.handlers.SMTPHandler) and\
739 elif issubclass(klass, logging.handlers.SysLogHandler) and\
759 result.setLevel(logging._checkLevel(level))
781 logger.setLevel(logging._checkLevel(level))
795 logger = logging.getLogger(name)
803 root = logging.getLogger()
809 """Configure logging using a dictionary."""
835 Handler for a logging configuration request.
837 It expects a completely new logging configuration and uses fileConfig
881 A simple TCP socket-based logging config receiver.
889 logging._acquireLock()
891 logging._releaseLock()
905 logging._acquireLock()
907 logging._releaseLock()
928 logging._acquireLock()
930 logging._releaseLock()
940 logging._acquireLock()
946 logging._releaseLock()