Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Using standard volume provisioner. Added a logback config to split ST…
…DOUT and STDERR streams
- Loading branch information
Ray Tsang
committed
Jun 15, 2017
1 parent
ad487ab
commit 15cec99
Showing
3 changed files
with
40 additions
and
10 deletions.
There are no files selected for viewing
40 changes: 40 additions & 0 deletions
40
examples-java/helloworld-ui/src/main/resources/logback-spring.xml
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,40 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<configuration> | ||
<include resource="org/springframework/boot/logging/logback/defaults.xml" /> | ||
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender"> | ||
<target>System.out</target> | ||
<filter class="ch.qos.logback.core.filter.EvaluatorFilter"> | ||
<evaluator class="ch.qos.logback.classic.boolex.GEventEvaluator"> | ||
<expression> | ||
e.level.toInt() < WARN.toInt() | ||
</expression> | ||
</evaluator> | ||
<OnMismatch>DENY</OnMismatch> | ||
<OnMatch>ACCEPT</OnMatch> | ||
</filter> | ||
<encoder> | ||
<pattern>${CONSOLE_LOG_PATTERN}</pattern> | ||
<charset>utf8</charset> | ||
</encoder> | ||
</appender> | ||
<appender name="STDERR" class="ch.qos.logback.core.ConsoleAppender"> | ||
<target>System.err</target> | ||
<filter class="ch.qos.logback.core.filter.EvaluatorFilter"> | ||
<evaluator class="ch.qos.logback.classic.boolex.GEventEvaluator"> | ||
<expression> | ||
e.level.toInt() >= WARN.toInt() | ||
</expression> | ||
</evaluator> | ||
<OnMismatch>DENY</OnMismatch> | ||
<OnMatch>ACCEPT</OnMatch> | ||
</filter> | ||
<encoder> | ||
<pattern>${CONSOLE_LOG_PATTERN}</pattern> | ||
<charset>utf8</charset> | ||
</encoder> | ||
</appender> | ||
<root level="INFO"> | ||
<appender-ref ref="STDOUT" /> | ||
<appender-ref ref="STDERR" /> | ||
</root> | ||
</configuration> |
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 was deleted.
Oops, something went wrong.