-
Notifications
You must be signed in to change notification settings - Fork 50
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
Specifying a controlLevelSwitch when no API key is in use forces all logs to Verbose #49
Comments
Hi, thanks for the report! #41 should have fixed this, released in version 3.1.0 of the package. Could you please confirm which version you're using? |
Thanks Nick, I'll take a look. Apologies for the duplicate! |
Yep, we're on 3.0.1! So we'll update and test to confirm that it's all good. Thanks again, |
Great, thanks for looping back 👍 |
Yep, it's working perfectly. PEBKAC! Q |
Awesome :-) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If a client specifies no api key, but specifies a control level switch, the log level on the client is forced to Verbose.
The reason this can has been an issue for us is because we have an internal library which multiple projects use for things like logging and other infrastructure. Not all projects will necessarily have an API key for example and the code in the lib essentially wires up Seq with whatever is passed along:
configParams.apiKey
may be null, as the client may not have one configured.The
LogLevelSwitch
above will now be Verbose, regardless of the log level initially applied (Information, in this case).We have updated our internal lib to be more careful about how it configures the Seq sink, but I feel that the sink should ignore the controlLevelSwitch if no APIKey is supplied.
The text was updated successfully, but these errors were encountered: