Skip to content

Commit 2b1b144

Browse files
committed
Add test logging configuration files
Introduce application-test.properties and logback.xml for configuring logging during tests in aspect-model-editor-service. Sets root logger level to ERROR and defines logback appenders and logger levels for Micronaut components.
1 parent 43323db commit 2b1b144

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#
2+
# Copyright (c) 2025 Robert Bosch Manufacturing Solutions GmbH
3+
#
4+
# See the AUTHORS file(s) distributed with this work for
5+
# additional information regarding authorship.
6+
#
7+
# This Source Code Form is subject to the terms of the Mozilla Public
8+
# License, v. 2.0. If a copy of the MPL was not distributed with this
9+
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
10+
#
11+
# SPDX-License-Identifier: MPL-2.0
12+
#
13+
# Logging Configuration
14+
logger.levels.root=ERROR
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<configuration>
2+
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
3+
<encoder>
4+
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
5+
</encoder>
6+
</appender>
7+
8+
<appender name="file" class="ch.qos.logback.core.FileAppender">
9+
<file>logs/ame-application.log</file>
10+
<append>true</append>
11+
<encoder>
12+
<pattern>%d{yyyy-MM-dd HH:mm:ss} [%thread] %-5level %logger{36} - %msg%n</pattern>
13+
</encoder>
14+
</appender>
15+
16+
<logger name="io.micronaut" level="INFO"/>
17+
<logger name="io.micronaut.context" level="INFO"/>
18+
<logger name="io.micronaut.data" level="INFO"/>
19+
20+
<root level="INFO">
21+
<appender-ref ref="STDOUT"/>
22+
<appender-ref ref="file"/>
23+
</root>
24+
25+
<statusListener class="ch.qos.logback.core.status.NopStatusListener"/>
26+
</configuration>

0 commit comments

Comments
 (0)