Home | History | Annotate | Download | only in logging

Lines Matching refs:logging

18 Configuration functions for the logging package for Python. The core package
24 To use, simply 'import logging' and log away!
30 import logging
31 import logging.handlers
55 # reconfiguration of logging.
62 Read the logging configuration from a ConfigParser-format file.
80 logging._acquireLock()
82 logging._handlers.clear()
83 del logging._handlerList[:]
84 # Handlers add themselves to logging._handlers
88 logging._releaseLock()
130 c = logging.Formatter
158 klass = eval(klass, vars(logging))
162 args = eval(args, vars(logging))
166 h.setLevel(logging._levelNames[level])
169 if issubclass(klass, logging.handlers.MemoryHandler):
192 root = logging.root
197 log.setLevel(logging._levelNames[level])
234 logger = logging.getLogger(qn)
247 logger.setLevel(logging._levelNames[level])
261 #and by disabling them, you stop them doing any logging.
267 logger.level = logging.NOTSET
491 Configure logging using a dictionary-like object to describe the
505 logging._acquireLock()
510 if name not in logging._handlers:
515 handler = logging._handlers[name]
519 handler.setLevel(logging._checkLevel(level))
540 logging._handlers.clear()
541 del logging._handlerList[:]
598 root = logging.root
631 #and by disabling them, you stop them doing any logging.
637 logger.level = logging.NOTSET
652 logging._releaseLock()
673 result = logging.Formatter(fmt, dfmt)
682 result = logging.Filter(name)
713 if issubclass(klass, logging.handlers.MemoryHandler) and\
717 if not isinstance(th, logging.Handler):
724 elif issubclass(klass, logging.handlers.SMTPHandler) and\
727 elif issubclass(klass, logging.handlers.SysLogHandler) and\
746 result.setLevel(logging._checkLevel(level))
765 logger.setLevel(logging._checkLevel(level))
779 logger = logging.getLogger(name)
787 root = logging.getLogger()
793 """Configure logging using a dictionary."""
812 Handler for a logging configuration request.
814 It expects a completely new logging configuration and uses fileConfig
857 A simple TCP socket-based logging config receiver.
865 logging._acquireLock()
867 logging._releaseLock()
880 logging._acquireLock()
882 logging._releaseLock()
901 logging._acquireLock()
903 logging._releaseLock()
913 logging._acquireLock()
919 logging._releaseLock()