Package fr.uga.pddl4j.planners
Class LogLevel
java.lang.Object
fr.uga.pddl4j.planners.LogLevel
- All Implemented Interfaces:
Serializable,picocli.CommandLine.ITypeConverter<LogLevel>
public class LogLevel
extends Object
implements Serializable, picocli.CommandLine.ITypeConverter<LogLevel>
This class implements the log level for the trace of the planners.
- Since:
- 4.0
- See Also:
- Serialized Form
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic LogLevelAll levels including custom levels.static LogLevelDesignates fine-grained informational events that are most useful to debug an application.static org.apache.logging.log4j.LevelThe default level of the log.static LogLevelDesignates error events that might still allow the application to continue running.static LogLevelDesignates very severe error events that will presumably lead the application to abort.static LogLevelDesignates informational messages that highlight the progress of the application at coarse-grained level.static LogLevelThe highest possible rank and is intended to turn off logging.static LogLevelDesignates finer-grained informational events than the DEBUG.static LogLevelDesignates potentially harmful situations. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionConvert a string value into a log level.booleanReturns if this object is equals to another.org.apache.logging.log4j.LevelgetLevel()Returns the level.inthashCode()Returns the hash code value of this object.voidsetLevel(org.apache.logging.log4j.Level level)Sets the level.toString()Returns a string representation of this log.
-
Field Details
-
OFF
The highest possible rank and is intended to turn off logging. -
FATAL
Designates very severe error events that will presumably lead the application to abort. -
ERROR
Designates error events that might still allow the application to continue running. -
WARM
Designates potentially harmful situations. -
INFO
Designates informational messages that highlight the progress of the application at coarse-grained level. -
DEBUG
Designates fine-grained informational events that are most useful to debug an application. -
TRACE
Designates finer-grained informational events than the DEBUG. -
ALL
All levels including custom levels. -
DEFAULT_LEVEL
public static final org.apache.logging.log4j.Level DEFAULT_LEVELThe default level of the log.
-
-
Constructor Details
-
LogLevel
public LogLevel()Creates a log level with the default level. -
LogLevel
public LogLevel(org.apache.logging.log4j.Level level)Creates a log level with a specified level.- Parameters:
level- the level.
-
LogLevel
Creates a log level with a specified level as a string.- Parameters:
level- the sting level.
-
-
Method Details
-
setLevel
public final void setLevel(org.apache.logging.log4j.Level level)Sets the level.- Parameters:
level- the level.
-
getLevel
public final org.apache.logging.log4j.Level getLevel()Returns the level.- Returns:
- the level.
-
convert
Convert a string value into a log level. The string accepted are: ALL, DEBUG, ERROR, FATAL, INFO, OFF, TRACE, WARN. The string value in parameter is not case-sensitive.- Specified by:
convertin interfacepicocli.CommandLine.ITypeConverter<LogLevel>- Parameters:
value- the string value to be converted.- Returns:
- the log corresponding.
- Throws:
IllegalArgumentException- if the value cannot be converted into a log l©evel.
-
equals
Returns if this object is equals to another. -
hashCode
public int hashCode()Returns the hash code value of this object. -
toString
Returns a string representation of this log.
-