Ask A Question

Questions

Winston Log Level

Posted by Fatih Kurt 4 months ago

Hey,

I set up Node.js integration like at your configuration. But serverity level always seems at notice level. How can i set up it correctly? Thank you.

Winston logger:

new (winston.Logger)({
transports:[
new (winston.transports.File)({
name: 'AppLog',
filename: 'data/application.log',
label: 'AppLog',
json: true,
silent: false,
level: 'info' // info and above
})
]
})

Rsyslog:

$InputFileName /var/app/current/data/application.log
$InputFileFacility local1
$InputFilePollInterval 20
$InputFileTag ApplicationLogs
$InputFileStateFile ApplicationLogs
$InputRunFileMonitor

Loading comments...