u.u.ConfigurableUDPLogHandler(UDPLogHandler) : class documentation

Part of udplog.udplog View Source View In Hierarchy

Configurable UDPLog logging handler.

This is a convenience subclass of UDPLogHandler for use in logging configuration files (see logging.config.fileConfig):

   [loggers]
   keys = root

   [handlers]
   keys = udplog

   [formatters]
   keys =

   [logger_root]
   level = INFO
   handlers = udplog

   [handler_udplog]
   class = udplog.udplog.ConfigurableUDPLogHandler
   level = INFO
   args = ({'appname': 'example'},)
NoteThis is a subclass instead of a factory function because logging.config requires this.
Line # Kind Name Docs
292 Method __init__ Set up a UDPLogHandler with a UDPLogger.

Inherited from UDPLogHandler:

Line # Kind Name Docs
212 Method emit Emit a record.
def __init__(self, defaultFields=None, category='python_logging', host=DEFAULT_HOST, port=DEFAULT_PORT, includeHostname=True): (source)

Set up a UDPLogHandler with a UDPLogger.

ParametersdefaultFieldsMapping of default fields to include in all events. (type: dict.)
categoryThe UDPLog category. (type: bytes.)
hostThe UDP host to send to. (type: int.)
portThe UDP port to send to.
includeHostnameIf set, the default fields include a 'hostname' field set to the current hostname. (type: bool.)
API Documentation for udplog, generated by pydoctor at 2014-02-17 15:26:29.