-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
enable logging for integration testing (log4j2-spring.xml is not in the
ignored resources)
- Loading branch information
GordeaS
authored and
GordeaS
committed
Mar 18, 2024
1 parent
3aba94f
commit 91094db
Showing
2 changed files
with
37 additions
and
1 deletion.
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
35 changes: 35 additions & 0 deletions
35
set-integration-testing/src/integration-test/resources/log4j2-spring.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,35 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Configuration status="WARN"> | ||
<Appenders> | ||
<Console name="Console" target="SYSTEM_OUT"> | ||
<PatternLayout pattern="%d{yyyy-MM-dd'T'HH:mm:ss.SSSXXX} %-5p %C:%L [%t] - %m%n"/> | ||
<!-- | ||
<PatternLayout> | ||
<alwaysWriteExceptions>false</alwaysWriteExceptions> | ||
<pattern>{"@timestamp":"%d{yyyy-MM-dd'T'HH:mm:ss.SSSXXX}","level":"%-5p","thread":"%t","class":"%C", "code_line_number":"%L","message":"%replace{%m %throwable}{[\n\t"]}{ }"}%n</pattern> | ||
</PatternLayout> | ||
--> | ||
</Console> | ||
</Appenders> | ||
<Loggers> | ||
<Root level="INFO"> | ||
<AppenderRef ref="Console"/> | ||
</Root> | ||
<logger name="eu.europeana.set" level="DEBUG"> | ||
</logger> | ||
|
||
<logger name="eu.europeana" level="INFO"> | ||
</logger> | ||
<logger name="org.mongodb.driver" level="DEBUG"> | ||
</logger> | ||
<logger name="com.mongodb.diagnostics" level="WARN"> | ||
</logger> | ||
<!-- To enable logging of Mongo queries, set log level to debug --> | ||
<logger name="org.mongodb.morphia" level="DEBUG"/> | ||
|
||
<!-- To enable logging of test contaners, set log level to debug --> | ||
<logger name="org.testcontainers" level="DEBUG"/> | ||
|
||
</Loggers> | ||
</Configuration> | ||
|