In python, logging to syslog is fairly trivial:
syslog.openlog("ident")
syslog.syslog(0, "spilled beer on server")
syslog.closelog()
Is there an equivalently simple way in Java? After quite a bit of googling, I've been unable to find an easy to understand method that doesn't require reconfiguring rsyslogd or syslogd. If there's no equivalent, what is the simplest way to log to syslog?
One way to go direct to the log without udp is with syslog4j. I wouldn't necessarily say it's simple, but it doesn't require reconfiguring syslog, at least.