You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
is useful to reduce the size of log files and especially the horizontal width of log lines in the case of well-known packages. But on occasion a log message is printed from a class with a generic-sounding name and it is actually difficult to figure out which package this is coming from, even with GitHub code search. Ideas:
Print the full package name the first time it is encountered in a given logger.
Print the .protectionDomain.codeSource.location of a JAR (at least the filename, not necessary directory path; e.g. some-lib-1.23.jar) the first time it is encountered as the emitter of a log message. Trickier since https://docs.oracle.com/javase/10/docs/api/java/util/logging/LogRecord.html#getSourceClassName() does not record the Class so it would need to be searched for in the Thread.contextClassLoader.
The text was updated successfully, but these errors were encountered:
lib-support-log-formatter/src/main/java/io/jenkins/lib/support_log_formatter/SupportLogFormatter.java
Lines 105 to 140 in ec8e3de
.protectionDomain.codeSource.location
of a JAR (at least the filename, not necessary directory path; e.g.some-lib-1.23.jar
) the first time it is encountered as the emitter of a log message. Trickier since https://docs.oracle.com/javase/10/docs/api/java/util/logging/LogRecord.html#getSourceClassName() does not record theClass
so it would need to be searched for in theThread.contextClassLoader
.The text was updated successfully, but these errors were encountered: