开发者

Logback's Syslog Appender

I've read logback's documentation multiple times on the syslog appender. I am under the impression that a syslog daemon runs on every computer, s开发者_StackOverflowo I set up the configuration just as they have it in their example. When I run the program no errors occur yet when the system log is checked, nothing has been logged there.

<appender name="SYSLOG" class="ch.qos.logback.classic.net.SyslogAppender">
  <syslogHost>my ip adress</syslogHost>
  <facility>USER</facility>
  <suffixPattern>[%thread] %logger %msg</suffixPattern>
</appender>`


Have you checked that syslog is configured to receive connections via UDP? On my installation it was disabled by default, and had to be uncommented in the .conf file.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜