From f3751cb1180ba3f307f076b382e29f0b9b687eb2 Mon Sep 17 00:00:00 2001 From: Jelle Hoffman Date: Wed, 19 Feb 2025 15:06:52 +0100 Subject: [PATCH] FDP-2849: Adding logback config for writing to files cucumber containers --- .../src/main/resources/logback-config.xml | 16 ++++++- .../src/test/resources/logback.xml | 18 +++++++- .../src/main/resources/logback-config.xml | 15 +++++++ .../src/test/resources/logback.xml | 42 +++++++++++++++++++ .../src/main/resources/logback-config.xml | 15 +++++++ .../src/test/resources/logback.xml | 15 +++++++ 6 files changed, 118 insertions(+), 3 deletions(-) create mode 100644 integration-tests/cucumber-tests-platform-publiclighting/src/test/resources/logback.xml diff --git a/integration-tests/cucumber-tests-platform-common/src/main/resources/logback-config.xml b/integration-tests/cucumber-tests-platform-common/src/main/resources/logback-config.xml index fdfef516503..f6d9319a89b 100644 --- a/integration-tests/cucumber-tests-platform-common/src/main/resources/logback-config.xml +++ b/integration-tests/cucumber-tests-platform-common/src/main/resources/logback-config.xml @@ -1,9 +1,9 @@ + - @@ -14,6 +14,19 @@ SPDX-License-Identifier: Apache-2.0 + + /target/output/osgp-cucumber-tests-platform-common/logs/cucumber-tests-platform-common.log + + /target/output/osgp-cucumber-tests-platform-common/logs/cucumber-tests-platform-common.log.%d{yyyy-MM-dd}.%i.log + 100MB + 10 + 20GB + + + [%d{yyyy-MM-dd HH:mm:ss.SSS}] [${HOSTNAME}] [%thread] %level %logger{36}@%method:%line - %msg%n + + + @@ -22,6 +35,7 @@ SPDX-License-Identifier: Apache-2.0 + diff --git a/integration-tests/cucumber-tests-platform-common/src/test/resources/logback.xml b/integration-tests/cucumber-tests-platform-common/src/test/resources/logback.xml index 6534a91007d..c9b4ee4c5bb 100644 --- a/integration-tests/cucumber-tests-platform-common/src/test/resources/logback.xml +++ b/integration-tests/cucumber-tests-platform-common/src/test/resources/logback.xml @@ -1,9 +1,9 @@ + - @@ -14,14 +14,28 @@ SPDX-License-Identifier: Apache-2.0 + + /target/output/osgp-cucumber-tests-platform-common/logs/cucumber-tests-platform-common-test.log + + /target/output/osgp-cucumber-tests-platform-common/logs/cucumber-tests-platform-common-test.log.%d{yyyy-MM-dd}.%i.log + 100MB + 10 + 20GB + + + [%d{yyyy-MM-dd HH:mm:ss.SSS}] [${HOSTNAME}] [%thread] %level %logger{36}@%method:%line - %msg%n + + + - + + diff --git a/integration-tests/cucumber-tests-platform-publiclighting/src/main/resources/logback-config.xml b/integration-tests/cucumber-tests-platform-publiclighting/src/main/resources/logback-config.xml index fdfef516503..54af57be9d8 100644 --- a/integration-tests/cucumber-tests-platform-publiclighting/src/main/resources/logback-config.xml +++ b/integration-tests/cucumber-tests-platform-publiclighting/src/main/resources/logback-config.xml @@ -1,3 +1,4 @@ + + + + + + + + [%d{yyyy-MM-dd HH:mm:ss.SSS}] [${HOSTNAME}] [%thread] %level %logger{36}@%method:%line - %msg%n + + + + + /target/output/osgp-cucumber-tests-platform-publiclighting/logs/cucumber-tests-platform-publiclighting-test.log + + /target/output/osgp-cucumber-tests-platform-publiclighting/logs/cucumber-tests-platform-publiclighting-test.log.%d{yyyy-MM-dd}.%i.log + 100MB + 10 + 20GB + + + [%d{yyyy-MM-dd HH:mm:ss.SSS}] [${HOSTNAME}] [%thread] %level %logger{36}@%method:%line - %msg%n + + + + + + + + + + + + + + + diff --git a/integration-tests/cucumber-tests-platform-smartmetering/src/main/resources/logback-config.xml b/integration-tests/cucumber-tests-platform-smartmetering/src/main/resources/logback-config.xml index fdfef516503..bcf857930e5 100644 --- a/integration-tests/cucumber-tests-platform-smartmetering/src/main/resources/logback-config.xml +++ b/integration-tests/cucumber-tests-platform-smartmetering/src/main/resources/logback-config.xml @@ -1,3 +1,4 @@ +