-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Allow setting the log level via a CLI argument #8295
Conversation
Related to: #4513 |
I don't see anything wrong with this. But I'm not clear on the implementation, is this using env var values? (ex: Where/how would the user set/override it?). |
These can be set by passing flags to the JVM, e.g.
Maybe we should also update |
I think we should have a relatively easy documented way for users to set it, and if that means updating |
0e2ddf2
to
871f9a4
Compare
Updated as discussed in IRC - added a |
871f9a4
to
30b02be
Compare
Other than that its looking good 😁 |
We could change it to only set the level for the ZAP classes, and leave the root log level as-is.
That was intentional. I thought a bad log level didn't warrant crashing ZAP, since we have a log level in the log4j2.properties file anyway, but I can tweak this. |
+1 for only setting the ZAP logging levels (others may disagree?) |
30b02be
to
b2ad842
Compare
zap/src/main/resources/org/zaproxy/zap/resources/Messages.properties
Outdated
Show resolved
Hide resolved
Signed-off-by: ricekot <github@ricekot.com>
b2ad842
to
6494c44
Compare
Thank you! |
This PR has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
No description provided.