Search in sources :

Example 11 with Logger

use of ch.qos.logback.classic.Logger in project Alpha by alpha-asp.

the class RacksTest method enableTracing.

/**
	 * Sets the logging level to TRACE. Useful for debugging; call at beginning of test case.
	 */
private static void enableTracing() {
    Logger root = (Logger) LoggerFactory.getLogger(Logger.ROOT_LOGGER_NAME);
    root.setLevel(ch.qos.logback.classic.Level.TRACE);
}
Also used : Logger(ch.qos.logback.classic.Logger)

Example 12 with Logger

use of ch.qos.logback.classic.Logger in project Alpha by alpha-asp.

the class ThreeColouringRandomGraphTest method enableTracing.

/**
	 * Sets the logging level to TRACE. Useful for debugging; call at beginning of test case.
	 */
private static void enableTracing() {
    Logger root = (Logger) LoggerFactory.getLogger(Logger.ROOT_LOGGER_NAME);
    root.setLevel(ch.qos.logback.classic.Level.TRACE);
}
Also used : Logger(ch.qos.logback.classic.Logger)

Example 13 with Logger

use of ch.qos.logback.classic.Logger in project Alpha by alpha-asp.

the class ThreeColouringRandomGraphTest method enableDebugLog.

private static void enableDebugLog() {
    Logger root = (Logger) LoggerFactory.getLogger(Logger.ROOT_LOGGER_NAME);
    root.setLevel(Level.DEBUG);
}
Also used : Logger(ch.qos.logback.classic.Logger)

Example 14 with Logger

use of ch.qos.logback.classic.Logger in project Alpha by alpha-asp.

the class ThreeColouringTestWithRandom method enableTracing.

/**
	 * Sets the logging level to TRACE. Useful for debugging; call at beginning of test case.
	 */
private static void enableTracing() {
    Logger root = (Logger) LoggerFactory.getLogger(Logger.ROOT_LOGGER_NAME);
    root.setLevel(ch.qos.logback.classic.Level.TRACE);
}
Also used : Logger(ch.qos.logback.classic.Logger)

Example 15 with Logger

use of ch.qos.logback.classic.Logger in project Alpha by alpha-asp.

the class ThreeColouringWheelTest method enableTracing.

/**
	 * Sets the logging level to TRACE. Useful for debugging; call at beginning of test case.
	 */
private static void enableTracing() {
    Logger root = (Logger) LoggerFactory.getLogger(Logger.ROOT_LOGGER_NAME);
    root.setLevel(ch.qos.logback.classic.Level.TRACE);
}
Also used : Logger(ch.qos.logback.classic.Logger)

Aggregations

Logger (ch.qos.logback.classic.Logger)339 ILoggingEvent (ch.qos.logback.classic.spi.ILoggingEvent)90 LoggerContext (ch.qos.logback.classic.LoggerContext)86 Test (org.junit.Test)78 Appender (ch.qos.logback.core.Appender)30 BeforeClass (org.junit.BeforeClass)28 FileAppender (ch.qos.logback.core.FileAppender)27 Test (org.junit.jupiter.api.Test)27 ConsoleAppender (ch.qos.logback.core.ConsoleAppender)22 File (java.io.File)21 PatternLayoutEncoder (ch.qos.logback.classic.encoder.PatternLayoutEncoder)20 Level (ch.qos.logback.classic.Level)18 ListAppender (ch.qos.logback.core.read.ListAppender)14 RollingFileAppender (ch.qos.logback.core.rolling.RollingFileAppender)12 ArrayList (java.util.ArrayList)11 Before (org.junit.Before)11 SpringBootTest (org.springframework.boot.test.context.SpringBootTest)11 Map (java.util.Map)10 AsyncLoggingEventAppenderFactory (io.dropwizard.logging.async.AsyncLoggingEventAppenderFactory)9 DropwizardLayoutFactory (io.dropwizard.logging.layout.DropwizardLayoutFactory)8