Class Logging


  • public class Logging
    extends java.lang.Object
    The logging class offers convenience functions to initialize and update the application's log options.

    In particular, it can load the log properties either from a resource or a local file on the file system (logging.properties. If a local file is present, it is preferred over the JAR resource.

    To initialize logging, the init() method can be called in the static block of a class, e.g.

       static {
         Logging.init();
       }
     
    • Constructor Summary

      Constructors 
      Constructor Description
      Logging()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void addGlobalHandler​(java.util.logging.Handler targetHandler)  
      static void disableLogging()  
      static void init()  
      static void setGlobalLogLevel​(java.util.logging.Level targetLogLevel)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • init

        public static void init()
      • setGlobalLogLevel

        public static void setGlobalLogLevel​(java.util.logging.Level targetLogLevel)
      • addGlobalHandler

        public static void addGlobalHandler​(java.util.logging.Handler targetHandler)