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
Modifier and TypeFieldDescriptionstatic LogLevel
All levels including custom levels.static LogLevel
Designates fine-grained informational events that are most useful to debug an application.static org.apache.logging.log4j.Level
The default level of the log.static LogLevel
Designates error events that might still allow the application to continue running.static LogLevel
Designates very severe error events that will presumably lead the application to abort.static LogLevel
Designates informational messages that highlight the progress of the application at coarse-grained level.static LogLevel
The highest possible rank and is intended to turn off logging.static LogLevel
Designates finer-grained informational events than the DEBUG.static LogLevel
Designates potentially harmful situations. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionConvert a string value into a log level.boolean
Returns if this object is equals to another.org.apache.logging.log4j.Level
getLevel()
Returns the level.int
hashCode()
Returns the hash code value of this object.void
setLevel(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:
convert
in 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.
-