我喜欢,并在我的所有项目中使用它。现在,我需要在我的一个应用程序中记录到syslog服务器。我想,“没问题,温斯顿有一个,很简单!”
但我发现了一个问题。npm (控制台)和syslog之间的日志级别不兼容。示例:
在我的应用程序中,我(主要)这样配置了我的日志
// To use syslog stuff. Commented out for the initial example
//winston.setLevels(winston.config.syslog.levels);
// Console logging should have timestamps which are of
root@monitor:/opt/observium# service syslog-ng restart
Stopping system logging: syslog-ng.
Starting system logging: syslog-ngsyslog-ng: Error setting capabilities, capability management disabled; error='Operation not permitted'
root@monitor:/opt/observium# uname -a
Linux monitor 2.6.32-042s
在编译glibc 2.11时,我得到了以下错误。有没有办法解决这个问题。
In file included from ../sysdeps/unix/sysv/linux/syslog.c:10:
../misc/syslog.c: In function ‘__vsyslog_chk’:
../misc/syslog.c:123: sorry, unimplemented: inlining failed in call to ‘syslog’: function body not available
../misc/syslog.c:155: sorry, unimplemented: c