The server's logging works with winston library, in the logging configuration we can specify a few properties which will be listed below
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
{ logging: { log_folder: __utils.absPath('./logs/'), express: { request: [ // 'body', //only add if it's safe to display data 'connection.remoteAddress', 'authorizedCN' ], response: [ // 'body' //only add if it's safe to display data ] }, transports: { console: { level: 'info', enable: true }, file: { level: 'info', enable: true } }, response: { showStack: true } } }} |
Info |
---|
Available levels for each transport, in order of highest to lowest errorwarning, noticeinfo and debug |