Package org.evolvis.tartools.mvnparent
Class InitialiseLogging
java.lang.Object
org.evolvis.tartools.mvnparent.InitialiseLogging
Utility class with helper functions to load a file from the classpath
and initialise JDK14 “jul” (
java.util.logging) logging- Author:
- mirabilos (t.glaser@tarent.de)
-
Method Summary
Modifier and TypeMethodDescriptionstatic InputStreamgetResourceAsStream(String filename) Loads a file from the classpath.static voidInitialises “JDK 1.4 logging”.
-
Method Details
-
getResourceAsStream
Loads a file from the classpath.
- Parameters:
filename- String name of a file to look for on the classpath- Returns:
- InputStream (or null)
-
InitialiseJDK14Logging
public static void InitialiseJDK14Logging()Initialises “JDK 1.4 logging”.
Call this once, early, to load
logging.propertiesfrom the classpath, initialisingjava.util.loggingfrom it.
-