mirror of
https://github.com/boldsuck/haveno.git
synced 2024-12-22 20:19:21 +00:00
use error level for error log file
This commit is contained in:
parent
d4f1dc5b8e
commit
2f310b420d
1 changed files with 1 additions and 2 deletions
|
@ -67,7 +67,6 @@ public class Log {
|
||||||
appender.start();
|
appender.start();
|
||||||
|
|
||||||
// log errors in separate file
|
// log errors in separate file
|
||||||
// not working as expected still.... damn logback...
|
|
||||||
PatternLayoutEncoder errorEncoder = new PatternLayoutEncoder();
|
PatternLayoutEncoder errorEncoder = new PatternLayoutEncoder();
|
||||||
errorEncoder.setContext(loggerContext);
|
errorEncoder.setContext(loggerContext);
|
||||||
errorEncoder.setPattern("%d{MMM-dd HH:mm:ss.SSS} [%thread] %-5level %logger: %msg%n%ex");
|
errorEncoder.setPattern("%d{MMM-dd HH:mm:ss.SSS} [%thread] %-5level %logger: %msg%n%ex");
|
||||||
|
@ -92,7 +91,7 @@ public class Log {
|
||||||
errorTriggeringPolicy.start();
|
errorTriggeringPolicy.start();
|
||||||
|
|
||||||
ThresholdFilter thresholdFilter = new ThresholdFilter();
|
ThresholdFilter thresholdFilter = new ThresholdFilter();
|
||||||
thresholdFilter.setLevel("WARN");
|
thresholdFilter.setLevel("ERROR");
|
||||||
thresholdFilter.start();
|
thresholdFilter.start();
|
||||||
|
|
||||||
errorAppender.setRollingPolicy(errorRollingPolicy);
|
errorAppender.setRollingPolicy(errorRollingPolicy);
|
||||||
|
|
Loading…
Reference in a new issue