-
Notifications
You must be signed in to change notification settings - Fork 9
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
Using levels : info and error #7
Comments
@pputhran Please provide example code. |
Hi, I'm having issues trying to log with the error level. Here is the code (first example in the repo readme):
The first logger.info works flawlessly however the second, the logger.error throws the following exception:
I've tried to spot where it fails and I can see in the debugger (in le_node/lib/node_modules/logger.js) that in line 193 (it seems to be a babelized file):
for the logger.info it returns [1, "info"], but for the logger.error it returns [undefined, undefined]. I can't say anymore as for some reason I can't watch $toLevel as the debugger says that is undefined. I hope to be helpful, if you need that I try something please don't hesitate to ask. Thanks in advance. |
Hi! Yes, it seems to work ;) Thanks for your support. |
Having the same issue. |
Hello,
Trying to understanding how to use both "info" and "errors". If I set level => streams: [{level: 'info', I am not able to use logger.error function. Can you please how to log both info and errors
The text was updated successfully, but these errors were encountered: