public static enum LoggerFactory.LogType extends Enum<LoggerFactory.LogType>
Enum Constant and Description |
---|
ANDROID
WARNING: Android log must be _before_ commons logging since Android provides commons logging but logging
messages are ignored that are sent there.
|
COMMONS_LOGGING |
JAVA_UTIL |
LOCAL |
LOG4J |
LOG4J2 |
SLF4J |
Modifier and Type | Method and Description |
---|---|
Log |
createLog(String classLabel)
Create and return a Log class for this type.
|
boolean |
isAvailable()
Return true if the log class is available.
|
static LoggerFactory.LogType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LoggerFactory.LogType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LoggerFactory.LogType SLF4J
public static final LoggerFactory.LogType ANDROID
public static final LoggerFactory.LogType COMMONS_LOGGING
public static final LoggerFactory.LogType LOG4J2
public static final LoggerFactory.LogType LOG4J
public static final LoggerFactory.LogType LOCAL
public static final LoggerFactory.LogType JAVA_UTIL
public static LoggerFactory.LogType[] values()
for (LoggerFactory.LogType c : LoggerFactory.LogType.values()) System.out.println(c);
public static LoggerFactory.LogType 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 boolean isAvailable()
This documentation is licensed by Gray Watson under the Creative Commons Attribution-Share Alike 3.0 License.