Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can I get logLevels to show as String values like INFO instead of 30 in the log file ? #689

Open
vijaybalakrishnanintel opened this issue Apr 19, 2022 · 1 comment

Comments

@vijaybalakrishnanintel
Copy link

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,

@ferdibiflator
Copy link

ferdibiflator commented Apr 27, 2022

you can find it here #194

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants