Class Level

java.lang.Object
com.enterprisedt.util.debug.Level

public class Level extends Object
Simple debug level class. Uses the same interface (but not implementation) as log4j, so that the debug classes could be easily replaced by log4j (by changing imports - too dangerous to rely on class path and using the same package names)
Version:
$Revision$
Author:
Bruce Blackshaw
  • Field Details

    • cvsId

      public static final String cvsId
      Revision control id
      See Also:
    • OFF

      public static final Level OFF
      Off level
    • FATAL

      public static final Level FATAL
      Fatal level
    • ERROR

      public static final Level ERROR
      OFF level
    • WARN

      public static final Level WARN
      Warn level
    • INFO

      public static final Level INFO
      Info level
    • DEBUG

      public static final Level DEBUG
      Debug level
    • ALL

      public static final Level ALL
      All level
  • Method Details

    • getLevel

      public int getLevel()
      Get integer log level
      Returns:
      log level
    • getLevel

      public static Level getLevel(String level)
      Get level from supplied string
      Parameters:
      level - level as a string
      Returns:
      level object or null if not found
    • toString

      public String toString()
      String representation
      Overrides:
      toString in class Object
      Returns:
      string