Skip to content

Commit

Permalink
add file logging mode
Browse files Browse the repository at this point in the history
  • Loading branch information
anton committed Apr 21, 2020
1 parent ce2c506 commit 27cbf32
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,11 @@ static Set<LoggingMode> loadLoggingModes() {
return appenderRefs.stream()
.map(AppenderRef::getRef)
.filter(Objects::nonNull)
.map(ref -> ref.equalsIgnoreCase(SocketAppender.class.getSimpleName()) ? SOCKET : CONSOLE)
.map(ref -> ref.equalsIgnoreCase(SocketAppender.class.getSimpleName())
? SOCKET
: ref.equalsIgnoreCase(FileAppender.class.getSimpleName())
? FILE
: CONSOLE)
.collect(toSet());
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ public interface LoggingModuleConstants {

enum LoggingMode {
CONSOLE,
FILE,
SOCKET
}

Expand Down

0 comments on commit 27cbf32

Please sign in to comment.