-
Notifications
You must be signed in to change notification settings - Fork 10
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
write log level in logged message #8
Comments
@pdesoyres, you mean to say you would like to add the text " DEBUG" or "ERROR" to the message prefix? Or do you want to see only a certain level of messages in the log excluding all other (above or below). |
@bbottema, yes I would like to see the log level ("DEBUG" for example) in the message prefix. This is because, when I read the output log, I want to see very easily the log level of the message. |
@pdesoyres, what pattern would you like as a default? Currently it is |
@bbottema Something like |
Alright, should be solved in v1.1.0. By default, the loglevel is not shown, unless sprintf.js is missing in which case angular-logger falls back to basic prefixpattern that includes the logging level. To add logging level to the prefix pattern, simply add the third placeholder:
|
@bbottema thank you for the fast implementation ! It works perfectly. |
Moved from pdorgambide/angular-logger#23
The text was updated successfully, but these errors were encountered: