Home | History | Annotate | Download | only in site_utils

Lines Matching refs:logging

2 # https://docs.python.org/2/howto/logging-cookbook.html#network-logging
4 # Classes in this file are used to create a simple TCP socket-based logging
5 # receiver. The receiver listens to default logging port (9020) and save log to
7 # client can add a logging handler to write log to the receiver with following
9 # socketHandler = logging.handlers.SocketHandler('localhost',
10 # logging.handlers.DEFAULT_TCP_LOGGING_PORT)
11 # logging.getLogger().addHandler(socketHandler)
15 import logging
26 """Handler for a streaming logging request.
28 This basically logs the record using whatever logging policy is
47 record = logging.makeLogRecord(obj)
71 logger = logging.getLogger(name)
80 """Simple TCP socket-based logging receiver.
110 """A wrapper class to start and stop a TCP server for logging."""
147 logging.getLogger().handlers = []
149 logging.basicConfig(
152 logging.basicConfig(**kwargs)