Skip to content

Commit

Permalink
Added logging level var
Browse files Browse the repository at this point in the history
  • Loading branch information
ethauvin committed Oct 31, 2023
1 parent 54917c6 commit a1d55ac
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,12 @@ public DemoApplicationBuild() {
}

public static void main(String[] args) {
var level = Level.ALL;
var logger = Logger.getLogger("rife.bld.extension");
ConsoleHandler consoleHandler = new ConsoleHandler();
consoleHandler.setLevel(Level.ALL);
consoleHandler.setLevel(level);
logger.addHandler(consoleHandler);
logger.setLevel(Level.ALL);
logger.setLevel(level);
logger.setUseParentHandlers(false);

new DemoApplicationBuild().start(args);
Expand Down

0 comments on commit a1d55ac

Please sign in to comment.