Lines Matching refs:logging
6 # This module brings together the magic to setup logging correctly for
9 import logging
10 import logging.handlers
16 class ModemManagerFormatter(logging.Formatter):
44 The main function that sets up logging as expected. It does the following:
46 (1) Clear out existing logging setup that leaks in during autotest import.
47 (2) Setup logging handler to log to stdout
48 (3) Setup logging handler to log to syslog.
51 root = logging.getLogger()
55 stdout_handler = logging.StreamHandler(sys.stdout)
56 stdout_formatter = logging.Formatter(
62 syslog_handler = logging.handlers.SysLogHandler(
64 facility=logging.handlers.SysLogHandler.LOG_DAEMON)