Package org.spincast.quickstart.config
Class AppLogbackConfigurerConfig
java.lang.Object
org.spincast.plugins.logbackutils.config.SpincastLogbackConfigurerConfigDefault
org.spincast.quickstart.config.AppLogbackConfigurerConfig
- All Implemented Interfaces:
SpincastLogbackConfigurerConfig
Configure Logback
-
Field Summary
Fields inherited from class org.spincast.plugins.logbackutils.config.SpincastLogbackConfigurerConfigDefault
logger
-
Constructor Summary
ConstructorDescriptionAppLogbackConfigurerConfig
(SpincastUtils spincastUtils, AppConfig appConfig, TemplatingEngine templatingEngine) -
Method Summary
Modifier and TypeMethodDescriptionprotected AppConfig
The path about the Logback XML file to load.protected TemplatingEngine
tweakContent
(String logbackContent) Allows you to tweak the Logback content before it is applied.Methods inherited from class org.spincast.plugins.logbackutils.config.SpincastLogbackConfigurerConfigDefault
getSpincastUtils
-
Constructor Details
-
AppLogbackConfigurerConfig
@Inject public AppLogbackConfigurerConfig(SpincastUtils spincastUtils, AppConfig appConfig, TemplatingEngine templatingEngine)
-
-
Method Details
-
getAppConfig
-
getTemplatingEngine
-
getResourceInfo
Description copied from interface:SpincastLogbackConfigurerConfig
The path about the Logback XML file to load.The file can be on the classpath or on the file system.
You can return
null
if you want to provide the full content using theSpincastLogbackConfigurerConfig.tweakContent(String)
method (an empty string would then be passed to that method).- Specified by:
getResourceInfo
in interfaceSpincastLogbackConfigurerConfig
- Overrides:
getResourceInfo
in classSpincastLogbackConfigurerConfigDefault
-
tweakContent
Description copied from interface:SpincastLogbackConfigurerConfig
Allows you to tweak the Logback content before it is applied.You can use this for example to replace some placeholders in the Logback content.
- Specified by:
tweakContent
in interfaceSpincastLogbackConfigurerConfig
- Overrides:
tweakContent
in classSpincastLogbackConfigurerConfigDefault
-