You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use this: const logger = bunyan.createLogger({ name: 'logger', subSystem: 'scheduler', streams: [{ type: 'raw', stream: new RotatingFileStream({ path: './scheduler.log', period: '1d', // daily rotation totalFiles: 10, // keep 10 back copies rotateExisting: true, // Give ourselves a clean file when we start up, based on period threshold: '10m', // Rotate log files larger than 10 megabytes totalSize: '20m', // Don't keep more than 20mb of archived log files gzip: true // Compress the archive log files to save space }), level: (process.env.LOG_LEVEL) || 'debug' }] });
The log file shows log level as 30 for INFO etc. I would like to see the log level as INFO etc instead.
TIA,
The text was updated successfully, but these errors were encountered:
I use this:
const logger = bunyan.createLogger({ name: 'logger', subSystem: 'scheduler', streams: [{ type: 'raw', stream: new RotatingFileStream({ path: './scheduler.log', period: '1d', // daily rotation totalFiles: 10, // keep 10 back copies rotateExisting: true, // Give ourselves a clean file when we start up, based on period threshold: '10m', // Rotate log files larger than 10 megabytes totalSize: '20m', // Don't keep more than 20mb of archived log files gzip: true // Compress the archive log files to save space }), level: (process.env.LOG_LEVEL) || 'debug' }] });
The log file shows log level as 30 for INFO etc. I would like to see the log level as INFO etc instead.
TIA,
The text was updated successfully, but these errors were encountered: