Search in sources :

Example 1 with MonolineFormatter

use of org.apache.sis.util.logging.MonolineFormatter in project sis by apache.

the class TestSuite method configureLogging.

/**
 * Installs Apache SIS monoline formatter for easier identification of Apache SIS log messages among Maven outputs.
 * We perform this installation only for {@code *TestSuite}, not for individual {@code *Test}. Consequently this is
 * typically enabled when building a whole module with Maven but not when debugging an individual class.
 *
 * @since 1.0
 */
@BeforeClass
public static void configureLogging() {
    MonolineFormatter f = MonolineFormatter.install();
    f.setHeader(null);
    f.setTimeFormat(null);
    f.setSourceFormat("class.method");
}
Also used : MonolineFormatter(org.apache.sis.util.logging.MonolineFormatter) BeforeClass(org.junit.BeforeClass)

Aggregations

MonolineFormatter (org.apache.sis.util.logging.MonolineFormatter)1 BeforeClass (org.junit.BeforeClass)1