All Downloads are FREE. Search and download functionalities are using the official Maven repository.

javaee.module.common.logger.Logger Maven / Gradle / Ivy

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 );
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy