在 Ubuntu 12.04 上,我可以在/var/log/syslog
.
命令:
# initctl log-priority info
# initctl emit hello
Run Code Online (Sandbox Code Playgroud)
日志:
Apr 1 01:56:56 precise64 kernel: [ 8365.820425] init: Connection from private client
Apr 1 01:56:56 precise64 kernel: [ 8365.821130] init: Handling hello event
Run Code Online (Sandbox Code Playgroud)
在 Ubuntu 13.10 上,消息不会出现在目录中syslog
或/var/log
目录下的任何其他地方,尽管类似的命令logger hello
按预期工作。我应该去别的地方找他们吗?是否有我需要在某处更改的配置设置?
在 Ubuntu 13.04 上似乎有同样问题的人提出了一个关于 Server Fault的问题,更多的here和here也可能描述了同样的问题。不幸的是,这些问题没有提供解决问题的线索。