Skip to content

Commit

Permalink
Merge pull request #217 from NASA-PDS/issue_203
Browse files Browse the repository at this point in the history
changes for common log4j
  • Loading branch information
jordanpadams authored Dec 2, 2024
2 parents 1fd20a5 + 36e5e19 commit 3e5d0c2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ private static void addConsoleAppender(ConfigurationBuilder<BuiltConfiguration>
{
AppenderComponentBuilder appender = cfg.newAppender(name, "CONSOLE");
appender.addAttribute("target", ConsoleAppender.Target.SYSTEM_OUT);
appender.add(cfg.newLayout("PatternLayout").addAttribute("pattern", "[%level] %msg%n%throwable"));
appender.add(cfg.newLayout("PatternLayout").addAttribute("pattern", "%d{yyyy-MM-dd HH:mm:ss} [%-5p] (%F:%M:%L) %m%n%throwable"));
cfg.add(appender);
}

Expand All @@ -74,7 +74,7 @@ private static void addFileAppender(ConfigurationBuilder<BuiltConfiguration> cfg
AppenderComponentBuilder appender = cfg.newAppender(name, "FILE");
appender.addAttribute("fileName", filePath);
appender.addAttribute("append", false);
appender.add(cfg.newLayout("PatternLayout").addAttribute("pattern", "%d [%level] %msg%n%throwable"));
appender.add(cfg.newLayout("PatternLayout").addAttribute("pattern", "%d{yyyy-MM-dd HH:mm:ss} [%-5p] (%F:%M:%L) %m%n%throwable"));
cfg.add(appender);
}

Expand Down

0 comments on commit 3e5d0c2

Please sign in to comment.