-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(core): add Elastic Common Schema (ecs) log format dependencies
close #2611
- Loading branch information
1 parent
701dd17
commit c7598f6
Showing
2 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<included> | ||
<appender name="CONSOLE_ECS_OUT" class="ch.qos.logback.core.ConsoleAppender"> | ||
<target>System.out</target> | ||
<immediateFlush>true</immediateFlush> | ||
<filter class="ch.qos.logback.classic.filter.LevelFilter"> | ||
<level>ERROR</level> | ||
<onMatch>DENY</onMatch> | ||
</filter> | ||
<filter class="ch.qos.logback.classic.filter.LevelFilter"> | ||
<level>WARN</level> | ||
<onMatch>DENY</onMatch> | ||
</filter> | ||
<encoder class="co.elastic.logging.logback.EcsEncoder" /> | ||
</appender> | ||
|
||
<appender name="CONSOLE_ECS_ERR" class="ch.qos.logback.core.ConsoleAppender"> | ||
<target>System.err</target> | ||
<immediateFlush>true</immediateFlush> | ||
<filter class="ch.qos.logback.classic.filter.ThresholdFilter"> | ||
<level>WARN</level> | ||
</filter> | ||
<encoder class="co.elastic.logging.logback.EcsEncoder" /> | ||
</appender> | ||
</included> |