com.j256.ormlite.logger
Enum LoggerFactory.LogType

java.lang.Object
  extended by java.lang.Enum<LoggerFactory.LogType>
      extended by com.j256.ormlite.logger.LoggerFactory.LogType
All Implemented Interfaces:
Serializable, Comparable<LoggerFactory.LogType>
Enclosing class:
LoggerFactory

public static enum LoggerFactory.LogType
extends Enum<LoggerFactory.LogType>

Type of internal logs supported. This is package permissions for testing.


Enum Constant Summary
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
           
LOCAL
           
LOG4J
           
LOG4J2
           
SLF4J
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

ANDROID

public static final LoggerFactory.LogType ANDROID
WARNING: Android log must be _before_ commons logging since Android provides commons logging but logging messages are ignored that are sent there. Grrrrr.


SLF4J

public static final LoggerFactory.LogType SLF4J

COMMONS_LOGGING

public static final LoggerFactory.LogType COMMONS_LOGGING

LOG4J2

public static final LoggerFactory.LogType LOG4J2

LOG4J

public static final LoggerFactory.LogType LOG4J

LOCAL

public static final LoggerFactory.LogType LOCAL
Method Detail

values

public static LoggerFactory.LogType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (LoggerFactory.LogType c : LoggerFactory.LogType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static LoggerFactory.LogType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

createLog

public Log createLog(String classLabel)
Create and return a Log class for this type.


isAvailable

public boolean isAvailable()
Return true if the log class is available.



This documentation is licensed by Gray Watson under the Creative Commons Attribution-Share Alike 3.0 License.