File tree Expand file tree Collapse file tree 3 files changed +21
-0
lines changed
src/main/java/com/godiddy/cli Expand file tree Collapse file tree 3 files changed +21
-0
lines changed Original file line number Diff line number Diff line change 463463 <artifactId >log4j-slf4j2-impl</artifactId >
464464 <version >${apache.log4j.version} </version >
465465 </dependency >
466+ <dependency >
467+ <groupId >org.apache.logging.log4j</groupId >
468+ <artifactId >log4j-jul</artifactId >
469+ <version >${apache.log4j.version} </version >
470+ </dependency >
466471
467472 <!-- Spring Dependencies -->
468473
619624 <groupId >org.apache.logging.log4j</groupId >
620625 <artifactId >log4j-slf4j2-impl</artifactId >
621626 </dependency >
627+ <dependency >
628+ <groupId >org.apache.logging.log4j</groupId >
629+ <artifactId >log4j-jul</artifactId >
630+ <scope >runtime</scope >
631+ </dependency >
622632
623633 <!-- OpenAPI Dependencies -->
624634
Original file line number Diff line number Diff line change 1212
1313public class GodiddyCLIApplication {
1414
15+ static {
16+ if (System .getProperty ("java.util.logging.manager" ) == null ) {
17+ System .setProperty ("java.util.logging.manager" , "org.apache.logging.log4j.jul.LogManager" );
18+ }
19+ }
20+
1521 private static final Logger log = LogManager .getLogger (GodiddyCLIApplication .class );
1622
1723 public static void main (String ... args ) {
@@ -44,6 +50,10 @@ private static void configureLogLevel() {
4450 Configurator .setLevel ("com.godiddy.cli" , Level .DEBUG );
4551 Configurator .setLevel ("com.danubetech" , Level .DEBUG );
4652 }
53+ case trace -> {
54+ Configurator .setLevel ("com.godiddy.cli" , Level .TRACE );
55+ Configurator .setLevel ("com.danubetech" , Level .TRACE );
56+ }
4757 default -> throw new RuntimeException ("Invalid log level: " + logLevel );
4858 }
4959 }
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ public enum Value {
1616 standard ,
1717 info ,
1818 debug ,
19+ trace ,
1920 def
2021 };
2122
You can’t perform that action at this time.
0 commit comments