-
Notifications
You must be signed in to change notification settings - Fork 27
Convert JUL Logger Level arguments to methods #156
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
Conversation
src/test/java/org/openrewrite/java/logging/jul/LoggerLevelArgumentToMethodTest.java
Show resolved
Hide resolved
src/test/java/org/openrewrite/java/logging/jul/LoggerLevelArgumentToMethodTest.java
Show resolved
Hide resolved
src/test/java/org/openrewrite/java/logging/jul/LoggerLevelArgumentToMethodTest.java
Show resolved
Hide resolved
src/test/java/org/openrewrite/java/logging/jul/LoggerLevelArgumentToMethodTest.java
Show resolved
Hide resolved
src/main/java/org/openrewrite/java/logging/jul/LoggerLevelArgumentToMethod.java
Outdated
Show resolved
Hide resolved
class Test { | ||
void test(Logger logger, String message) { | ||
logger.log(Level.ALL, message); | ||
logger.log(Level.CONFIG, message); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't logger.log(Level.CONFIG, message);
be converted to logger.config(message);
for consistency?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes you're right. Picked up separately with a commit to main
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome, thanks!
Fixes #155