net.sourceforge.acelogger.level
Enum LogLevel

java.lang.Object
  extended by java.lang.Enum<LogLevel>
      extended by net.sourceforge.acelogger.level.LogLevel
All Implemented Interfaces:
Serializable, Comparable<LogLevel>

public enum LogLevel
extends Enum<LogLevel>

A logging level enumeration describing each supported level and it's intended use.

Since:
1.0.0
Version:
1.0.0
Author:
Zardi (https://sourceforge.net/users/daniel_zardi)

Enum Constant Summary
DEBUG
          A log level used to trace an application decisions and results, information in this .level should be enough to determine the path used to obtain the results.
ERROR
          A log level used to indicate a recoverable error, like a connection loss or an inexistent file.
FATAL
          A log level used to indicate an unrecoverable error, most of the times the program will not continue running after a fatal exception, and if it continues running we can't guarantee the results, like an out of memory error.
INFO
          A log level used to inform an expected (but undesired) condition, like a failed security check for an user.
TRACE
          A log level used to "echo" the application state, most of the times this level should be disabled in production as it generates large amount of data, and sometimes this data should not be stored for security reasons.
WARN
          A log level used to indicate an occurrence of an uncommon (but somehow expected) condition, like not having a value were expected.
 
Method Summary
static LogLevel valueOf(String name)
          Returns the enum constant of this type with the specified name.
static LogLevel[] 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

TRACE

public static final LogLevel TRACE
A log level used to "echo" the application state, most of the times this level should be disabled in production as it generates large amount of data, and sometimes this data should not be stored for security reasons.

Since:
1.0.0

DEBUG

public static final LogLevel DEBUG
A log level used to trace an application decisions and results, information in this .level should be enough to determine the path used to obtain the results.

Since:
1.0.0

INFO

public static final LogLevel INFO
A log level used to inform an expected (but undesired) condition, like a failed security check for an user.

Since:
1.0.0

WARN

public static final LogLevel WARN
A log level used to indicate an occurrence of an uncommon (but somehow expected) condition, like not having a value were expected.

Since:
1.0.0

ERROR

public static final LogLevel ERROR
A log level used to indicate a recoverable error, like a connection loss or an inexistent file.

Since:
1.0.0

FATAL

public static final LogLevel FATAL
A log level used to indicate an unrecoverable error, most of the times the program will not continue running after a fatal exception, and if it continues running we can't guarantee the results, like an out of memory error.

Since:
1.0.0
Method Detail

values

public static LogLevel[] 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 (LogLevel c : LogLevel.values())
    System.out.println(c);

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

valueOf

public static LogLevel 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


Copyright © 2007-2010 The AceLogger Team. All Rights Reserved.