From 4fe55fbb1784868ed2b68f244e56632ac6a62c9f Mon Sep 17 00:00:00 2001 From: Amos Ng Date: Sat, 13 Jun 2020 21:45:46 +0800 Subject: [PATCH] Allow for the two log levels to be configurable --- CHANGELOG.md | 1 + src/main/resources/logback.xml | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2cf8f5e..0a7dfa5 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] ### Added +- [2020-06-13] Allow for the two log levels to be configurable by [@lflare]. ### Changed diff --git a/src/main/resources/logback.xml b/src/main/resources/logback.xml index b8f9859..322c3a9 100644 --- a/src/main/resources/logback.xml +++ b/src/main/resources/logback.xml @@ -1,5 +1,9 @@ + + ${file-level:-TRACE} + + log/latest.log log/logFile.%d{yyyy-MM-dd_HH}.log @@ -18,8 +22,9 @@ - INFO + ${stdout-level:-INFO} + %d{YYYY-MM-dd HH:mm:ss} %-5level %logger{36} - %msg%n