Package org.openremote.container.util
Class LogUtil
java.lang.Object
org.openremote.container.util.LogUtil
If system property
java.util.logging.config.file
or java.util.logging.config.file
has been
set then the normal LogManager.readConfiguration()
will be used, otherwise 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).
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static InputStream
protected static InputStream
getFileInputStream
(String path) static void
-
Field Details
-
LOG
protected static final org.slf4j.Logger LOG -
OR_LOGGING_CONFIG_FILE
- See Also:
-
-
Constructor Details
-
LogUtil
public LogUtil()
-
-
Method Details
-
initialiseJUL
- Throws:
ExceptionInInitializerError
-
getConfigInputStream
-
getFileInputStream
-