-
Notifications
You must be signed in to change notification settings - Fork 294
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
feat: MMLogger using parametrized message and string formatter #6591
Conversation
…mplete compatibility, also, tests
156c528
to
cbcc39f
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #6591 +/- ##
============================================
+ Coverage 29.04% 29.10% +0.06%
- Complexity 15180 15291 +111
============================================
Files 2837 2837
Lines 279411 279729 +318
Branches 49188 49288 +100
============================================
+ Hits 81145 81421 +276
+ Misses 192886 192854 -32
- Partials 5380 5454 +74 ☔ View full report in Codecov by Sentry. |
verifyLog(Level.ERROR, "Error message: test"); | ||
} | ||
|
||
@Test |
Check notice
Code scanning / CodeQL
Deprecated method or constructor invocation Note
MMLogger.error
public void logMessage(String fqcn, Level level, org.apache.logging.log4j.Marker marker, String message, Throwable t) { | ||
// Custom implementation for logging messages | ||
} | ||
|
Check notice
Code scanning / CodeQL
Confusing overloading of methods Note
isEnabled
Method CustomLogger.isEnabled(..) could be confused with overloaded method
isEnabled
public boolean isEnabled(Level level, Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7) { | ||
return true; | ||
} | ||
|
Check notice
Code scanning / CodeQL
Confusing overloading of methods Note
isEnabled
Method CustomLogger.isEnabled(..) could be confused with overloaded method
isEnabled
Method CustomLogger.isEnabled(..) could be confused with overloaded method
isEnabled
public boolean isEnabled(Level level, Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8, Object p9) { | ||
return true; | ||
} | ||
|
Check notice
Code scanning / CodeQL
Confusing overloading of methods Note
isEnabled
Method CustomLogger.isEnabled(..) could be confused with overloaded method
isEnabled
Method CustomLogger.isEnabled(..) could be confused with overloaded method
isEnabled
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.
Need to fix some JavaDocs and, since they are showing up, there are two spots within the Version.java file that are throwing CodeQL issues related to the fatal
call.
Mind fixing those with the fataDialog
instead along with this?
a24cc7e
to
a1dfbc7
Compare
What it does?
Adds parametrized messages and string formatter to the MMLogger, and makes obvious when the error command will open a dialog screen with the error.
This also shows how to properly use the different ways to setup parameters for the logs