/** * Create a default DEBUG logging fraction. * * @return The fully-configured fraction. */ public static LoggingFraction createDebugLoggingFraction() { return createDefaultLoggingFraction(Level.DEBUG); }
/** * Add a CustomFormatter to this logger * * @param name the name of the formatter * @param module the module that the logging handler depends on * @param className the logging handler class to be used * @return This fraction. */ public LoggingFraction customFormatter(String name, String module, String className) { return customFormatter(name, module, className, null); }
/** * Configure a default non-color formatter named {@code PATTERN}. * * @return This fraction. */ public LoggingFraction defaultFormatter() { return formatter(PATTERN, "%d{yyyy-MM-dd HH:mm:ss,SSS} %-5p [%c] (%t) %s%e%n"); }
/** * Create a default logging fraction for the specified level. * * @return The fully-configured fraction. */ public static LoggingFraction createDefaultLoggingFraction(Level level) { return new LoggingFraction() .defaultColorFormatter() .consoleHandler(level, COLOR_PATTERN) .rootLogger(level, CONSOLE); }
/** * Create a default logging fraction for the specified level. * * @return The fully-configured fraction. */ public static LoggingFraction createDefaultLoggingFraction(Level level) { return new LoggingFraction().applyDefaults(level); }
/** * Create a default TRACE logging fraction. * * @return The fully-configured fraction. */ public static LoggingFraction createTraceLoggingFraction() { return createDefaultLoggingFraction(Level.TRACE); }
/** * Create a default logging fraction for the specified level. * * @return The fully-configured fraction. */ public static LoggingFraction createDefaultLoggingFraction(String level) { return new LoggingFraction() .defaultColorFormatter() .consoleHandler(level, COLOR_PATTERN) .rootLogger(level, CONSOLE); }
/** * Add a CustomFormatter to this logger * * @param name the name of the formatter * @param module the module that the logging handler depends on * @param className the logging handler class to be used * @return This fraction. */ public LoggingFraction customFormatter(String name, String module, String className) { return customFormatter(name, module, className, null); }
/** * Configure a default color formatter named {@code COLOR_PATTERN}. * * @return This fraction. */ public LoggingFraction defaultColorFormatter() { return formatter(COLOR_PATTERN, "%K{level}%d{yyyy-MM-dd HH:mm:ss,SSS} %-5p [%c] (%t) %s%e%n"); }
/** * Create a default INFO logging fraction. * * @return The fully-configured fraction. */ public static LoggingFraction createDefaultLoggingFraction() { return createDefaultLoggingFraction(Level.INFO); }
/** * Add a CustomFormatter to this logger * * @param name the name of the formatter * @param module the module that the logging handler depends on * @param className the logging handler class to be used * @return This fraction. */ public LoggingFraction customFormatter(String name, String module, String className) { return customFormatter(name, module, className, null); }
/** * Configure a default color formatter named {@code COLOR_PATTERN}. * * @return This fraction. */ public LoggingFraction defaultColorFormatter() { return formatter(COLOR_PATTERN, "%d{yyyy-MM-dd HH:mm:ss,SSS} %-5p [%c] (%t) %s%e%n"); }
/** * Create a default INFO logging fraction. * * @return The fully-configured fraction. */ public static LoggingFraction createDefaultLoggingFraction() { return createDefaultLoggingFraction(Level.INFO); }
/** * Configure a default non-color formatter named {@code PATTERN}. * * @return This fraction. */ public LoggingFraction defaultFormatter() { return formatter(PATTERN, "%d{yyyy-MM-dd HH:mm:ss,SSS} %-5p [%c] (%t) %s%e%n"); }
/** * Create a default DEBUG logging fraction. * * @return The fully-configured fraction. */ public static LoggingFraction createDebugLoggingFraction() { return createDefaultLoggingFraction(Level.DEBUG); }
/** * Configure a default non-color formatter named {@code PATTERN}. * * @return This fraction. */ public LoggingFraction defaultFormatter() { return formatter(PATTERN, "%d{yyyy-MM-dd HH:mm:ss,SSS} %-5p [%c] (%t) %s%e%n"); }
/** * Create a default DEBUG logging fraction. * * @return The fully-configured fraction. */ public static LoggingFraction createDebugLoggingFraction() { return createDefaultLoggingFraction(Level.DEBUG); }
/** * Create a default ERROR logging fraction. * * @return The fully-configured fraction. */ public static LoggingFraction createErrorLoggingFraction() { return createDefaultLoggingFraction(Level.ERROR); }
/** * Create a default TRACE logging fraction. * * @return The fully-configured fraction. */ public static LoggingFraction createTraceLoggingFraction() { return createDefaultLoggingFraction(Level.TRACE); }
/** * Create a default ERROR logging fraction. * * @return The fully-configured fraction. */ public static LoggingFraction createErrorLoggingFraction() { return createDefaultLoggingFraction(Level.ERROR); }