Class Log

java.lang.Object
de.foellix.aql.Log

public class Log extends Object
  • Field Details

  • Constructor Details

    • Log

      public Log()
  • Method Details

    • msg

      public static void msg(String msg, int loglevel)
    • msg

      public static void msg(String msg, int loglevel, boolean newLine)
    • msg

      public static void msg(String msg, int loglevel, boolean newLine, boolean ignoreSilence)
    • msg

      public static void msg(org.fusesource.jansi.Ansi msg, int loglevel)
    • msg

      public static void msg(org.fusesource.jansi.Ansi msg, int loglevel, boolean newLine)
    • msg

      public static void msg(org.fusesource.jansi.Ansi msg, int loglevel, boolean newLine, boolean ignoreSilence)
    • note

      public static void note(String msg)
    • note

      public static void note(String msg, boolean logToFile)
    • note

      public static void note(String msg, boolean logToFile, boolean ignoreSilence)
    • warning

      public static void warning(String msg)
    • warning

      public static void warning(String msg, boolean logToFile)
    • warning

      public static void warning(String msg, boolean logToFile, boolean ignoreSilence)
    • error

      public static void error(String msg)
    • error

      public static void error(String msg, boolean logToFile)
    • error

      public static void error(String msg, boolean logToFile, boolean ignoreSilence)
    • logIt

      public static boolean logIt(int loglevel)
    • logIt

      public static boolean logIt(int loglevel, boolean considerFileLevel)
    • date

      public static String date()
    • date

      public static String date(long timestamp)
    • getExceptionAppendix

      public static String getExceptionAppendix(Throwable e)
    • getExceptionAppendix

      public static String getExceptionAppendix(Throwable e, boolean newLine)
    • getExceptionAppendixNoFormatting

      public static String getExceptionAppendixNoFormatting(Throwable e)
    • emptyLine

      public static void emptyLine()
    • reset

      public static void reset()
    • setLogLevel

      public static void setLogLevel(int loglevel)
    • getLogLevel

      public static int getLogLevel()
    • setLogToFileLevel

      public static void setLogToFileLevel(int loglevel)
    • getLogToFileLevel

      public static int getLogToFileLevel()
    • setPrefixEnabled

      public static void setPrefixEnabled(boolean value)
    • getShorten

      public static boolean getShorten()
    • setShorten

      public static void setShorten(boolean shorten)
    • setDifferentLogFile

      public static void setDifferentLogFile(File newLogFile)
    • setSilence

      public static void setSilence(boolean silenceAll)
    • setSilence

      public static void setSilence(boolean silenceAll, boolean ignoreSilenceInCaseOfAQLLog)
    • setSilence

      public static void setSilence(int silenceLevel)
      Sliences everything up to the given level
      Parameters:
      silenceLevel - E.g.: SILENCE_LEVEL_WARNING - Everything more important and warnings themselves are shown. Everything with lower priority is silenced.
    • setSilence

      public static void setSilence(int silenceLevel, boolean ignoreSilenceInCaseOfAQLLog)
      Sliences everything up to the given level
      Parameters:
      silenceLevel - E.g.: SILENCE_LEVEL_WARNING - Everything more important and warnings themselves are shown. Everything with lower priority is silenced.
      ignoreSilenceInCaseOfAQLLog - Any calls via Log.msg, Log.error, ... will still be printed.
    • isSilenced

      public static boolean isSilenced()
    • isSilenced

      public static boolean isSilenced(int type)
    • getSilenceLevel

      public static int getSilenceLevel()
    • enableGUIlogging

      public static void enableGUIlogging()
    • disableGUIlogging

      public static void disableGUIlogging()
    • stripAnsi

      public static String stripAnsi(String string)