What do you want to save?
Add Code snippet
New code examples
-
Python 2021-09-08 17:15:02
python logging to syslog linux
import logging import logging.handlers my_logger = logging.getLogger('MyLogger') my_logger.setLevel(logging.DEBUG) handler = logging.handlers.SysLogHandler(address = '/dev/log') my_logger.addHandler(handler) my_logger.debug('this is debug') my_logger.... Add solution