public class TestsLogConfigurationHelper extends Object
Constructor and Description |
---|
TestsLogConfigurationHelper() |
Modifier and Type | Method and Description |
---|---|
static void |
clearLoggingConfig()
Clears the configurations generated by
configureLoggingForTest(Class) |
static void |
configureLoggingForTest(Class<?> testClass)
Looks for a logging config file on the directory tree
where the binaries for
testClass resides. |
public static void configureLoggingForTest(Class<?> testClass)
testClass
resides.
If found, that logging config file is used, otherwise
Log4j2 is allowed to search for the config file using
its own logic.
A file called log4j2-test.xml
will be searched first.
If not found, will try with log4j2.xml
.
In either case, this method ends by reconfiguring all
loggers in the current LoggerContext
testClass
- the class holding the tests to be executedpublic static void clearLoggingConfig()
configureLoggingForTest(Class)
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.