-
Notifications
You must be signed in to change notification settings - Fork 394
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
Unable to specify log level in Bolt >= 1.4.0 #405
Comments
Thanks for taking the time to report this. You're right. The behavior needs to be improved. I just finished the implementation to address this issue. I will make a pull request within a few hours. It would be appreciated if you could take a look at the fix and give feedback on it if you have some. |
Thank you so much for getting back to me and deciding to take action so quickly! |
I think it's also worth noting that i'm unable to specify a log level by creating my own logger as you did in #406 to show how to customize the logger name. When I specify a log level of i.e.
results in
|
@zachsirotto No worries. I'm aware of the issue. The PR addresses the issue as well. |
Fix #405 by providing a better way to configure logger
[v2] Fix #405 by providing a better way to configure logger
Thanks for flagging this. The fix has been merged. This issue will be fixed in bolt version 1.7.x / 2.x. They'll be released soon (if everything goes well, both of them will be shipped within a month). |
Description
I am unable to specify the log level after upgrading from 1.2.0 to 1.4.0 and up.
What type of issue is this? (place an
x
in one of the[ ]
)Requirements (place an
x
in each of the[ ]
)Bug Report
Filling out the following details about bugs will help us solve your issue sooner.
Reproducible in:
package version: >= 1.4.0
node version: v12.12.0
OS version(s): macOS Catalina 10.15.1
Steps to reproduce:
logLevel
when creating a Bolt app in >= 1.4.0Expected result:
What you expected to happen
I expect to see the logger initialized for
WebClient:0
after the Bolt app is initialized.i.e.
Actual result:
Upon initialization of the bolt app, I get:
It seems that every time the logger attempts to log, i get another
[DEBUG] initialized
message.Another symptom i noticed is that all the logs messages aren't prefixed with a logger name i.e.
WebClient:0
but rather they're prefixed with a space.Attachments:
logs are posted above
The text was updated successfully, but these errors were encountered: