public enum VTNLogLevel extends Enum<VTNLogLevel>
VTNLogLevel defines a set of logging level for VTN internal
messages.| Enum Constant and Description |
|---|
DEBUG
Indicates the DEBUG level.
|
ERROR
Indicates the ERROR level.
|
INFO
Indicates the INFO level.
|
TRACE
Indicates the TRACE level.
|
WARN
Indicates the WARN level.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isEnabled(org.slf4j.Logger logger)
Determine whether the logging is enabled or not.
|
void |
log(org.slf4j.Logger logger,
String msg)
Log the specified message.
|
void |
log(org.slf4j.Logger logger,
String format,
Object... args)
Log a message according to the specified format string and arguments.
|
void |
log(org.slf4j.Logger logger,
String msg,
Throwable t)
Log the specified message and exception.
|
void |
log(org.slf4j.Logger logger,
Throwable t,
String format,
Object... args)
Log the specified throwable and a message according to the given
format string and arguments.
|
static VTNLogLevel |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static VTNLogLevel[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final VTNLogLevel ERROR
public static final VTNLogLevel WARN
public static final VTNLogLevel INFO
public static final VTNLogLevel DEBUG
public static final VTNLogLevel TRACE
public static VTNLogLevel[] values()
for (VTNLogLevel c : VTNLogLevel.values()) System.out.println(c);
public static VTNLogLevel valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic void log(org.slf4j.Logger logger,
Throwable t,
String format,
Object... args)
Note that this method constructs a log message using
String.format(String, Object[]).
logger - A Logger instance.t - A Throwable to be logged.format - A format string used to construct log message.args - An object array used to construct log message.public boolean isEnabled(org.slf4j.Logger logger)
logger - A Logger instance.true only if the logging is enabled.public void log(org.slf4j.Logger logger,
String msg)
logger - A Logger instance.msg - A message to be logged.public void log(org.slf4j.Logger logger,
String format,
Object... args)
This method constructs a message using SLF4J log format.
logger - A Logger instance.format - A format string used to construct log message.args - An object array used to construct log message.Copyright © 2018 OpenDaylight. All rights reserved.