Skip to content

Commit

Permalink
Fix logger reset config
Browse files Browse the repository at this point in the history
  • Loading branch information
clagomess committed Apr 27, 2017
1 parent e64dfe2 commit 955fe96
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion src/main/java/br/com/pirilampo/main/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ public static void main(String[] args) throws Exception {
// LOGGER
PatternLayout patternLayout = new PatternLayout("%-5p %d{yyyy-MM-dd HH:mm:ss} - %m%n");
ConsoleAppender consoleAppender = new ConsoleAppender(patternLayout);
BasicConfigurator.resetConfiguration();
BasicConfigurator.configure(consoleAppender);
LogManager.getRootLogger().setLevel(Level.INFO);

Expand Down
1 change: 1 addition & 0 deletions src/test/java/CompiladorTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ public void before() throws Exception {
//-- config logger
PatternLayout patternLayout = new PatternLayout("%-5p %d{yyyy-MM-dd HH:mm:ss} %c{1}:%L - %m%n");
ConsoleAppender consoleAppender = new ConsoleAppender(patternLayout);
BasicConfigurator.resetConfiguration();
BasicConfigurator.configure(consoleAppender);
LogManager.getRootLogger().setLevel(Level.INFO);

Expand Down

0 comments on commit 955fe96

Please sign in to comment.