Is there a way by which I can turn on/off certain logs, based on its type/levels.
For eg: I have defined 3 levels: ALL, WARNING, CRITICAL
And I have my Log class, where I will set this. Say I set Level: 'ALL'
So this will log everything, wherever I have logged messages.
Now, when I set Level: 'WARNING'
This will only log messages, which are of warning type.
Can I do this with Bunyan ? Or any other module?
Please help !!
try using winston module for logging .this is good for logging and has log rotation and other features