javaee.module.common.logger.Logger Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of common-javaee-module Show documentation
Show all versions of common-javaee-module Show documentation
This Module contains common JavaEE Helper Classes.
The newest version!
package javaee.module.common.logger;
public abstract class Logger extends AbstractLogger {
public static boolean IS_INFO_ACTIVE = true;
public static boolean IS_WARN_ACTIVE = true;
public static boolean IS_DEBUG_ACTIVE = true;
public static boolean IS_ERROR_ACTIVE = true;
public static boolean IS_TRACE_ACTIVE = true;
public static boolean SHOULD_INCLUDE_STACKTRACE = true;
public static void info( String message ) {
println( IS_INFO_ACTIVE, SHOULD_INCLUDE_STACKTRACE, " [ INFO ] ", message );
}
public static void warn( String message ) {
println( IS_WARN_ACTIVE, SHOULD_INCLUDE_STACKTRACE, " [ WARN ] ", message );
}
public static void debug( String message ) {
println( IS_DEBUG_ACTIVE, SHOULD_INCLUDE_STACKTRACE, " [ DEBUG ] ", message );
}
public static void error( String message ) {
println( IS_ERROR_ACTIVE, SHOULD_INCLUDE_STACKTRACE, " [ ERROR ] ", message );
}
public static void trace( String message ) {
println( IS_TRACE_ACTIVE, SHOULD_INCLUDE_STACKTRACE, " [ TRACE ] ", message );
}
}