Package org.openremote.container.util
Class LogUtil
java.lang.Object
org.openremote.container.util.LogUtil
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidIf system propertyjava.util.logging.config.filehas not been set, try to load the logging configuration specified in environment variableOR_LOGGING_CONFIG_FILEas a file.
-
Field Details
-
OR_LOGGING_CONFIG_FILE
- See Also:
-
-
Constructor Details
-
LogUtil
protected LogUtil()
-
-
Method Details
-
configureLogging
If system propertyjava.util.logging.config.filehas not been set, try to load the logging configuration specified in environment variableOR_LOGGING_CONFIG_FILEas 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 yourmain()method is located).- Throws:
ExceptionInInitializerError
-