Skip to content

Make test logging config easier to use#806

Merged
dennisvang merged 5 commits intodevelopfrom
maintenance/test-logging
Nov 14, 2025
Merged

Make test logging config easier to use#806
dennisvang merged 5 commits intodevelopfrom
maintenance/test-logging

Conversation

@dennisvang
Copy link
Copy Markdown
Contributor

@dennisvang dennisvang commented Nov 14, 2025

Current test logging config log4j2.xml does not produce any useful output at all during tests, except for the rudimentary test summaries from the test framework itself. Normal log messages, like those we see when running the app, are suppressed:

<Root level="off"/>

Normally this is good, because it prevents clutter, but it can also complicate "debugging."

This PR keeps the same default level="off", but makes it easier to enable normal logging temporarily, when required:

  • renamed log4j2.xml to log4j2-test.xml, to be more explicit, and more conformant to log4j autoconfig
  • added AppenderRef to root logger config, so we only need to change the level when needed

replaces #803

@dennisvang dennisvang force-pushed the maintenance/test-logging branch from a09a15f to db59e3b Compare November 14, 2025 15:45
@dennisvang dennisvang merged commit 9fcd0ce into develop Nov 14, 2025
13 checks passed
@dennisvang dennisvang deleted the maintenance/test-logging branch November 14, 2025 16:33
dennisvang added a commit that referenced this pull request Dec 8, 2025
* include root logger AppenderRef, so we only need to change the log level, when required
* rename test logging config file for clarity and conformance to log4j2 best practices
dennisvang added a commit that referenced this pull request Jan 29, 2026
* include root logger AppenderRef, so we only need to change the log level, when required
* rename test logging config file for clarity and conformance to log4j2 best practices
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant