Skip to content

Commit

Permalink
Merge pull request #274 from art-community/featue/file-logging-mode
Browse files Browse the repository at this point in the history
add file logging mode
  • Loading branch information
Anton Bashirov authored Apr 22, 2020
2 parents ce2c506 + 27cbf32 commit fdcbc52
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 fdcbc52

Please sign in to comment.