Class LogUtils


  • public class LogUtils
    extends Object
    Utilities for logging to the standard logfile.

    In scripts this class can be accessed via the "global" variable logger, so this is the way to log in scripts:

      try {
          logger.info("this node as date: " + node.to.date)
      } catch (Exception ex) {
          logger.severe('error on conversion of "' + node.text + '" to date', ex)
      }
     
    • Constructor Detail

      • LogUtils

        public LogUtils()
    • Method Detail

      • getLogDirectory

        public static String getLogDirectory()
      • info

        public static void info​(String string)
      • severe

        public static void severe​(String message)
      • severe

        public static void severe​(Throwable e)
      • warn

        public static void warn​(String msg)
      • warn

        public static void warn​(Throwable e)
      • getLogger

        public static Logger getLogger()