diff options
author | Tomasz Wrobel <tomasz.wrobel@nokia.com> | 2021-04-21 11:50:48 +0200 |
---|---|---|
committer | Tomasz Wrobel <tomasz.wrobel@nokia.com> | 2021-04-21 14:01:52 +0200 |
commit | 70e869e900fecc1bebf2ffc597ff782d02522c2c (patch) | |
tree | 090152ab0a06ba806e2c8c45b14a8fb4a562069c /src/main/resources/application.properties | |
parent | c8f27b8684e748196b5eb9bd21865b06cbd2695f (diff) |
Add log level configuration by system environment variable
Issue-ID: SDC-3185
Signed-off-by: Tomasz Wrobel <tomasz.wrobel@nokia.com>
Change-Id: I7ec4cbfec802f38822665aca577a3c1ab09a3c73
Diffstat (limited to 'src/main/resources/application.properties')
-rw-r--r-- | src/main/resources/application.properties | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index 3fef31f..f9dea88 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -1,4 +1,9 @@ -logging.level.web="ERROR" -spring.mvc.log-request-details=false app.config.charts-base-path=/charts spring.jackson.default-property-inclusion=NON_NULL + +logging.file.name=/var/log/onap/application.log +logging.logback.rollingpolicy.file-name-pattern=/var/log/onap/application-%d{yyyy-MM-dd}.%i.log +logging.logback.rollingpolicy.max-file-size=1MB +logging.logback.rollingpolicy.total-size-cap=10MB +logging.logback.rollingpolicy.max-history=30 +logging.logback.rollingpolicy.clean-history-on-start=true |