Hi all,

Our current test logs are difficult to read, especially within an IDE,
primarily because they are printed to stderr (often displayed in red).
Furthermore, there is no straightforward mechanism to configure
essential logging aspects like log format, timestamps, or, most
critically, log levels.

We currently use slf4j-simple, with the default log level set to INFO.
This default causes certain tests, such as those using MockServer, to
generate excessive logging output, as MockServer is very verbose at
INFO.

I would like to propose two main options for discussion:

Option A: Enhance slf4j-simple defaults: keep using slf4j-simple but
redefine the default settings for log levels, log formats, etc, in the
main build script directly. This approach would automatically apply
these standardized configurations across all modules.

Option B: Switch to logback for tests. Logback is banned by a
checkstyle rule, but we could lift the ban for test code. That would
offer more granular control over log messages. We could implement this
either through a global logback-test.xml file applied to all modules
or by allowing each module to define its own specific configuration.

What are your thoughts on these options?

Thanks,
Alex

Reply via email to