-
Notifications
You must be signed in to change notification settings - Fork 13
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
Can't change Log Level over Browser Console #10
Comments
I'm not sure how, or couldn't find on the documentation how to change the log level over browser console. Could you confirm if that is possible? |
Hi @lcarlesso Thank you for the interest 😃 I didn't implement such feature, but it could be a good idea. Something like > NgLogger.level = NgLogger.WARN; I think I can look at it during the week. |
I think it could be a great improvement as well, your library is great
already!
Let me know if you need help,
Leo
2017-07-03 13:52 GMT+02:00 Noémi Salaün <[email protected]>:
… Hi @lcarlesso <https://github.com/lcarlesso>
Thank you for the interest 😃
I didn't implement such feature, but it could be a good idea.
Something like
> NgLogger.level = NgLogger.WARN;
I think I can look at it during the week.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#10 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AFsWC4VHGLB3hVhKCYJC_dJqWslC078Qks5sKNXwgaJpZM4OMEQi>
.
--
Leonardo *Carlesso*
lcarlesso at Gmail.com
Fone: +39 342 8350102
*"Somewhere, right now, someone is training while you are not. When you
race him, he will win."*
" Sonhar qualquer coisa que você quiser sonhar, esta é a beleza da mente
humana.
Fazer qualquer coisa que você quiser fazer, esta é a força da vontade
humana.
Confiar em você mesmo para testar seus limites, esta é a coragem para ser
bem sucedido."
Bernard Edmons
|
Thanks 😀 You can submit a PR if you want to, but your request is not really complicated. I should be able to do it without trouble. |
Awesome,
thanks man
2017-07-03 16:46 GMT+02:00 Noémi Salaün <[email protected]>:
… Thanks 😀
You can submit a PR if you want to, but your request is not really
complicated. I should be able to do it without trouble.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#10 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AFsWC5il3g4R2zUSgWsXeyApG1WFEPwtks5sKP7CgaJpZM4OMEQi>
.
--
Leonardo *Carlesso*
lcarlesso at Gmail.com
Fone: +39 342 8350102
*"Somewhere, right now, someone is training while you are not. When you
race him, he will win."*
" Sonhar qualquer coisa que você quiser sonhar, esta é a beleza da mente
humana.
Fazer qualquer coisa que você quiser fazer, esta é a força da vontade
humana.
Confiar em você mesmo para testar seus limites, esta é a coragem para ser
bem sucedido."
Bernard Edmons
|
If you don't need to change the log level in prod mode, I think you can already do it with Augury.
I have not found the right way to do it properly, using only the console. Inside the Logger service constructor, I can add something like constructor(@Inject(LOGGER_LEVEL) level: Level, @Inject(Global) window: Window) {
this._level = level;
window.NgLogger = {
setLevel: (level: Level) => {
this._level = level;
}
}
// ...
} but it's not really Angular friendly. How to deal with Logger services that are not used as singleton? If you find a better way (the correct way) to do it, please let me know 😉 |
No description provided.
The text was updated successfully, but these errors were encountered: