Class LogUtil

java.lang.Object
org.openremote.container.util.LogUtil

public class LogUtil extends Object
  • Field Details

  • Constructor Details

    • LogUtil

      protected LogUtil()
  • Method Details

    • configureLogging

      public static void configureLogging() throws ExceptionInInitializerError
      If system property java.util.logging.config.file has not been set, try to load the logging configuration specified in environment variable OR_LOGGING_CONFIG_FILE as a file. If this wasn't set, try to find the file /deployment/manager/logging.properties. If this also wasn't found, load the given default logging configuration from the classpath (logging-dev.properties when OR_DEV_MODE=true otherwise logging.properties).

      This method should be called in a static { ... } block in the "first" class of your application (typically where your main() method is located).

      Throws:
      ExceptionInInitializerError