开发者

Logback's Syslog Appender

开发者 https://www.devze.com 2023-03-05 17:21 出处:网络
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

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

精彩评论

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

关注公众号