-
Notifications
You must be signed in to change notification settings - Fork 117
Closed
Description
We use splunk + syslog for performance check and visualization instead of using special log server. Adding syslog handler in logging.py seems trivial and I have done this on my side:
def _create_syslog_handler(handler_config):
return logging.handlers.SysLogHandler(address = '/dev/log')
def _create_stream_handler(handler_config):
stream = handler_config.get('name', 'stdout')
if stream == 'stdout':
hdlr = _create_file_handler(handler_config)
elif handler_type == 'filelog':
hdlr = _create_filelog_handler(handler_config)
elif handler_type == 'syslog':
hdlr = _create_syslog_handler(handler_config)
elif handler_type == 'stream':
hdlr = _create_stream_handler(handler_config)
...