-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FDP-2849: Adding logback config for writing to files cucumber containers
- Loading branch information
1 parent
8c623ec
commit f3751cb
Showing
6 changed files
with
118 additions
and
3 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
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
42 changes: 42 additions & 0 deletions
42
integration-tests/cucumber-tests-platform-publiclighting/src/test/resources/logback.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,42 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
SPDX-FileCopyrightText: Contributors to the GXF project | ||
SPDX-License-Identifier: Apache-2.0 | ||
--> | ||
|
||
<configuration> | ||
|
||
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender"> | ||
<!-- encoders are assigned the type | ||
ch.qos.logback.classic.encoder.PatternLayoutEncoder by default --> | ||
<encoder> | ||
<pattern>[%d{yyyy-MM-dd HH:mm:ss.SSS}] [${HOSTNAME}] [%thread] %level %logger{36}@%method:%line - %msg%n</pattern> | ||
</encoder> | ||
</appender> | ||
|
||
<appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender"> | ||
<file>/target/output/osgp-cucumber-tests-platform-publiclighting/logs/cucumber-tests-platform-publiclighting-test.log</file> | ||
<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy"> | ||
<fileNamePattern>/target/output/osgp-cucumber-tests-platform-publiclighting/logs/cucumber-tests-platform-publiclighting-test.log.%d{yyyy-MM-dd}.%i.log</fileNamePattern> | ||
<maxFileSize>100MB</maxFileSize> | ||
<maxHistory>10</maxHistory> | ||
<totalSizeCap>20GB</totalSizeCap> | ||
</rollingPolicy> | ||
<encoder> | ||
<pattern>[%d{yyyy-MM-dd HH:mm:ss.SSS}] [${HOSTNAME}] [%thread] %level %logger{36}@%method:%line - %msg%n</pattern> | ||
</encoder> | ||
</appender> | ||
|
||
<logger name="org.springframework" level="ERROR" /> | ||
<logger name="org.apache.http.wire" level="ERROR" /> | ||
<logger name="cucumber.runtime.java.spring" level="ERROR" /> | ||
<logger name="com.zaxxer.hikari" level="ERROR" /> | ||
<logger name="org.reflections.Reflections" level="ERROR" /> | ||
|
||
<root level="INFO"> | ||
<appender-ref ref="STDOUT" /> | ||
<appender-ref ref="FILE"/> | ||
</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 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