Created
December 8, 2016 06:32
-
-
Save hirolovesbeer/3f835f159db496f88dfc7033b74d2378 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import netsyslog | |
import syslog | |
logger = netsyslog.Logger() | |
logger.add_host("192.168.0.1") | |
for i in range(0, 99): | |
msg = "Hey, it works " + str(i) | |
# logger.log(syslog.LOG_USER, syslog.LOG_NOTICE, "Hey, it works!", pid=True) | |
logger.log(syslog.LOG_USER, syslog.LOG_NOTICE, msg, pid=True) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment