Hello, there is a program with unit testing. Logging occurs both during the execution of the program and during unit testing. The logging level TRACE is set in the Log4J.xml configuration file. In the unit tests I log messages using the DEBUG level in the TRACE program. When I launch unit tests, logs are also displayed with messages from the program classes (it’s logical that the program’s classes methods are called during unit testing — that’s why the necessary record goes). How to avoid it? Thank!

    0