我创建了一个使用syslog进行日志记录的dropwizard应用程序。我使用的是Mac OS版本10.10.3。我在Configuration.yml文件中的appender如下。
logging:
level: INFO
appenders:
- type: file
currentLogFilename: /var/log/myapp.log
threshold: INFO
archive: true
archivedLogFilenamePattern: /var/log/myapp-%d.log
archivedFileCount: 5
- type: syslog
host: localhost
port: 514
threshold: INFO
正确填充myapp.log文件。但是当我做的时候
sudo tail -f /var/log/system.log
我无法看到这些消息。我跟着来自How to start Syslogd server on Mac to accept remote logging messages?的回答,但我仍然无法看到这些消息。但是,如果我这样做
sudo tcpdump -i lo0 host 127.0.0.1 and udp port 514
我能看到数据包。我的syslog.conf看起来像这个
install.* @127.0.0.1:32376
我在这里缺少什么?