- java.lang.Object
-
- ch.qos.logback.core.spi.ContextAwareBase
-
- ch.qos.logback.core.util.ContextUtil
-
- All Implemented Interfaces:
ContextAware
public class ContextUtil extends ContextAwareBase
-
-
Field Summary
-
Fields inherited from class ch.qos.logback.core.spi.ContextAwareBase
context
-
-
Constructor Summary
Constructors Constructor Description ContextUtil(Context context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddFrameworkPackage(List<String> frameworkPackages, String packageName)voidaddGroovyPackages(List<String> frameworkPackages)voidaddOrReplaceShutdownHook(ShutdownHook hook)Add a shutdown hook thread with the JVM runtime.voidaddProperties(Properties props)-
Methods inherited from class ch.qos.logback.core.spi.ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContext
-
-
-
-
Constructor Detail
-
ContextUtil
public ContextUtil(Context context)
-
-
Method Detail
-
addProperties
public void addProperties(Properties props)
-
addGroovyPackages
public void addGroovyPackages(List<String> frameworkPackages)
-
addFrameworkPackage
public void addFrameworkPackage(List<String> frameworkPackages, String packageName)
-
addOrReplaceShutdownHook
public void addOrReplaceShutdownHook(ShutdownHook hook)
Add a shutdown hook thread with the JVM runtime. If a previous shutdown hook thread was registered, it is replaced.- Parameters:
hook-- Since:
- 1.5.7
-
-