Package ninja.logging
Class LogbackConfigurator
- java.lang.Object
-
- ninja.logging.LogbackConfigurator
-
public class LogbackConfigurator extends Object
Helps to configure Logback from application.conf via a property named "logback.configurationFile. Allows to load arbitrary configurations that fit your application.- Author:
- ra
-
-
Field Summary
Fields Modifier and Type Field Description static String
LOGBACK_CONFIGURATION_FILE_PROPERTY
-
Constructor Summary
Constructors Constructor Description LogbackConfigurator()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description protected static URL
getUrlForStringFromClasspathAsFileOrUrl(String logbackConfigurationFile)
Looks up a potential file from 1) The classpahth 2) From the filesystem 3) From an URLstatic void
initConfiguration(NinjaProperties ninjaProperties)
-
-
-
Field Detail
-
LOGBACK_CONFIGURATION_FILE_PROPERTY
public static final String LOGBACK_CONFIGURATION_FILE_PROPERTY
- See Also:
- Constant Field Values
-
-
Method Detail
-
initConfiguration
public static void initConfiguration(NinjaProperties ninjaProperties)
-
getUrlForStringFromClasspathAsFileOrUrl
protected static URL getUrlForStringFromClasspathAsFileOrUrl(String logbackConfigurationFile)
Looks up a potential file from 1) The classpahth 2) From the filesystem 3) From an URL- Parameters:
logbackConfigurationFile
-- Returns:
- null if not found or a valid url created from the logbackConfigurationFile
-
-