public static enum Madkit.LevelOption extends java.lang.Enum<Madkit.LevelOption> implements MadkitOption
Level
value. These options could be used from the command
line or using the main method of MaDKit.Enum Constant and Description |
---|
agentLogLevel
Option defining the default agent log level for newly launched agents.
|
guiLogLevel
Only useful for kernel developers
|
kernelLogLevel
Only useful for kernel developers
|
madkitLogLevel
Can be used to make MaDKit quiet
|
networkLogLevel |
warningLogLevel
Deprecated.
as of MaDKit 5.2, replaced by
AgentLogger.enableCGRWarnings() |
Modifier and Type | Method and Description |
---|---|
java.util.logging.Level |
getValue(java.util.Properties session) |
java.lang.String |
toString()
Returns the constant's name prefixed by "
-- " so that it could interpreted as an option of the command
line or in Madkit.Madkit(String...) . |
static Madkit.LevelOption |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Madkit.LevelOption[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
name
public static final Madkit.LevelOption agentLogLevel
AbstractAgent.setLogLevel(Level)
.
Example:
public static final Madkit.LevelOption kernelLogLevel
public static final Madkit.LevelOption guiLogLevel
public static final Madkit.LevelOption madkitLogLevel
public static final Madkit.LevelOption warningLogLevel
AgentLogger.enableCGRWarnings()
AbstractAgent.logger
,
Logger
,
AbstractAgent.getMadkitProperty(String)
,
AbstractAgent.setMadkitProperty(String, String)
public static final Madkit.LevelOption networkLogLevel
public static Madkit.LevelOption[] values()
for (Madkit.LevelOption c : Madkit.LevelOption.values()) System.out.println(c);
public static Madkit.LevelOption valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.util.logging.Level getValue(java.util.Properties session)
public java.lang.String toString()
--
" so that it could interpreted as an option of the command
line or in Madkit.Madkit(String...)
.toString
in interface MadkitOption
toString
in class java.lang.Enum<Madkit.LevelOption>
--optionName
Fabien Michel, Olivier Gutknecht, Jacques Ferber - September 9 2019