Class LogLevel

java.lang.Object
com.prineside.tdi2.utils.logging.LogLevel

public final class LogLevel extends Object
Log levels used in TLog. For critical errors, throw exception.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final byte
    System.out / Debugging info, not requested to be printed
    static final byte
    System.err / Severe issue that may lead to data loss
    static final byte
    System.out / Regular info, when requested to be printed (such as describe())
    static final byte
    System.err / Not critical issue
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static byte
     
    static String
    getName(byte level)
     
    static char
    getShortName(byte level)
     
    static boolean
     
    static boolean
     
    static boolean
     
    static void
    setCurrent(byte v)
     
    static byte
    shortNameToLevel(char level)
     

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • DEBUG

      public static final byte DEBUG
      System.out / Debugging info, not requested to be printed
      See Also:
    • INFO

      public static final byte INFO
      System.out / Regular info, when requested to be printed (such as describe())
      See Also:
    • WARNING

      public static final byte WARNING
      System.err / Not critical issue
      See Also:
    • ERROR

      public static final byte ERROR
      System.err / Severe issue that may lead to data loss
      See Also:
  • Constructor Details

    • LogLevel

      public LogLevel()
  • Method Details

    • getName

      public static String getName(byte level)
    • getShortName

      public static char getShortName(byte level)
    • shortNameToLevel

      public static byte shortNameToLevel(char level)
    • isDebug

      public static boolean isDebug()
    • setCurrent

      public static void setCurrent(byte v)
    • getCurrent

      public static byte getCurrent()
    • isInfo

      public static boolean isInfo()
    • isWarning

      public static boolean isWarning()