-
Notifications
You must be signed in to change notification settings - Fork 854
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
Error: levels cannot be overridden #507
Comments
I do not understand. Can you please make an example with code with what would you like to do, and what is currently throwing? |
@Arun4rangan do you mind jumping in with the snippet? |
@mcollina this currently throws: new Pino({
default: 0,
debug: 100,
info: 200,
notice: 300,
warning: 400,
error: 500,
critical: 600,
alert: 700,
emergency: 800
}) |
What is it throwing, and what are you expecting that to do? |
Expected behavior is to use my levels and discard default ones. |
That is not possible. You might want to send a PR for that and add a new option. |
We are storing our logs in Scalyr, which does not suport pino's log levels by default. I was really excited to see, that with #515 it is possible to allow to overwrite the levels being provided. Or at least I thought so. From the description of the new I created a small test case
which fails as pino still uses its default value of The cause of this is that the |
Would you like to send a PR with a fix? |
@mcollina Actually, I already tried this morning, but it didn't work out. So I could open a WIP PR and you might have an idea why my the code I wrote is actually not doing what it should. If this approach is fine with you. |
go for it
Il giorno ven 28 set 2018 alle 13:38 Christoph Berg <
notifications@github.com> ha scritto:
… @mcollina <https://github.com/mcollina> Actually, I already tried this
morning, but it didn't work out. So I could open a WIP PR and you might
have an idea why my the code I wrote is actually not doing what it should.
If this approach is fine with you.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#507 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AADL4-nlMLH7-VJrY7M9G4vvMTKgrVQAks5ufgpDgaJpZM4WSc31>
.
|
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
I was wondering what was the reasoning behind this. We're trying to configure the logger with the stackdriver levels.
info
anddebug
are at the moment not configurable.cc/ @Arun4rangan
The text was updated successfully, but these errors were encountered: