Skip to content

Instantly share code, notes, and snippets.

View izacarias's full-sized avatar
👨‍🎓

Iulisloi Zacarias izacarias

👨‍🎓
View GitHub Profile
#!/usr/bin/python3
import logging
from logging.handlers import SysLogHandler
syslogRemote = SysLogHandler(address=('127.0.0.1', 514))
remote_logger = logging.getLogger('remote_logging')
remote_logger.addHandler(syslogRemote)
remote_logger.setLevel(logging.INFO)
remote_logger.info('This is a remote log message')