ozone core API

org.ozoneDB.util
Class OzoneDebugLevel

java.lang.Object
  extended byorg.apache.log4j.Priority
      extended byorg.apache.log4j.Level
          extended byorg.ozoneDB.util.OzoneDebugLevel

public class OzoneDebugLevel
extends org.apache.log4j.Level

Extends Logging capability by adding three finer debug levels to the Log4J Level class.

Author:
Per Nyfelt

Field Summary
static java.lang.String DEBUG_STR
          One step finer (more verbose) than info
static OzoneDebugLevel DEBUG1
           
static int DEBUG1_INT
           
static java.lang.String DEBUG1_STR
          One step finer (more verbose) than debug
static OzoneDebugLevel DEBUG2
           
static int DEBUG2_INT
           
static java.lang.String DEBUG2_STR
          One step finer (more verbose) than debug1
static OzoneDebugLevel DEBUG3
           
static int DEBUG3_INT
           
static java.lang.String DEBUG3_STR
          One step finer (more verbose) than debug2
static java.lang.String ERROR_STR
          One step finer (more verbose) than fatal
static java.lang.String FATAL_STR
          The least verbose level
static java.lang.String INFO_STR
          One step finer (more verbose) than warn
static java.lang.String WARN_STR
          One step finer (more verbose) than error
 
Fields inherited from class org.apache.log4j.Level
ALL, DEBUG, ERROR, FATAL, INFO, OFF, WARN
 
Fields inherited from class org.apache.log4j.Priority
ALL_INT, DEBUG_INT, ERROR_INT, FATAL_INT, INFO_INT, OFF_INT, WARN_INT
 
Constructor Summary
protected OzoneDebugLevel(int level, java.lang.String strLevel, int syslogEquiv)
           
 
Method Summary
static org.apache.log4j.Level toLevel(int i)
           
static org.apache.log4j.Level toLevel(java.lang.String sArg)
          Convert the string passed as argument to a level.
static org.apache.log4j.Level toLevel(java.lang.String sArg, org.apache.log4j.Level defaultValue)
           
 
Methods inherited from class org.apache.log4j.Level
toLevel
 
Methods inherited from class org.apache.log4j.Priority
equals, getAllPossiblePriorities, getSyslogEquivalent, isGreaterOrEqual, toInt, toPriority, toPriority, toPriority, toPriority, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DEBUG1_INT

public static final int DEBUG1_INT
See Also:
Constant Field Values

DEBUG2_INT

public static final int DEBUG2_INT
See Also:
Constant Field Values

DEBUG3_INT

public static final int DEBUG3_INT
See Also:
Constant Field Values

FATAL_STR

public static final java.lang.String FATAL_STR
The least verbose level

See Also:
Constant Field Values

ERROR_STR

public static final java.lang.String ERROR_STR
One step finer (more verbose) than fatal

See Also:
Constant Field Values

WARN_STR

public static final java.lang.String WARN_STR
One step finer (more verbose) than error

See Also:
Constant Field Values

INFO_STR

public static final java.lang.String INFO_STR
One step finer (more verbose) than warn

See Also:
Constant Field Values

DEBUG_STR

public static final java.lang.String DEBUG_STR
One step finer (more verbose) than info

See Also:
Constant Field Values

DEBUG1_STR

public static final java.lang.String DEBUG1_STR
One step finer (more verbose) than debug

See Also:
Constant Field Values

DEBUG2_STR

public static final java.lang.String DEBUG2_STR
One step finer (more verbose) than debug1

See Also:
Constant Field Values

DEBUG3_STR

public static final java.lang.String DEBUG3_STR
One step finer (more verbose) than debug2

See Also:
Constant Field Values

DEBUG1

public static final OzoneDebugLevel DEBUG1

DEBUG2

public static final OzoneDebugLevel DEBUG2

DEBUG3

public static final OzoneDebugLevel DEBUG3
Constructor Detail

OzoneDebugLevel

protected OzoneDebugLevel(int level,
                          java.lang.String strLevel,
                          int syslogEquiv)
Method Detail

toLevel

public static org.apache.log4j.Level toLevel(java.lang.String sArg)
Convert the string passed as argument to a level. If the conversion fails, then this method returns DEBUG1.


toLevel

public static org.apache.log4j.Level toLevel(java.lang.String sArg,
                                             org.apache.log4j.Level defaultValue)

toLevel

public static org.apache.log4j.Level toLevel(int i)
                                      throws java.lang.IllegalArgumentException
Throws:
java.lang.IllegalArgumentException

ozone core API

Copyright (C) The Ozone Database Project - www.ozone-db.org. All rights reserved.