com.clumd.projects.java_custom_logging.logging.api.LogLevel Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-custom-logging Show documentation
Show all versions of java-custom-logging Show documentation
A custom implementation of the SLF4J interface, but with bonuses for using it directly
The newest version!
package com.clumd.projects.java_custom_logging.logging.api;
import java.io.Serializable;
/**
* Define a custom extended LogLevel which should always extend {@link java.util.logging.Level}, but provide some
* additional fields and functionality.
*/
public interface LogLevel extends Serializable {
/**
* Get the name of this Log Level.
*
* @return The Name of this Custom Log Level
*/
String getLevelName();
/**
* Get the priority of this Log Level
*
* @return The priority of this Log Level
*/
int getPriority();
/**
* Get the formatting this Log Level should be displayed with
*
* @return The escape codes required to display log messages at this Log Level.
*/
String getLevelFormat();
}