Class SlingContextUtil
java.lang.Object
ch.qos.logback.core.spi.ContextAwareBase
org.apache.sling.commons.log.logback.internal.util.SlingContextUtil
- All Implemented Interfaces:
ch.qos.logback.core.spi.ContextAware
public class SlingContextUtil
extends ch.qos.logback.core.spi.ContextAwareBase
Custom util such that origin can be customized
-
Field Summary
Fields inherited from class ch.qos.logback.core.spi.ContextAwareBase
context -
Constructor Summary
ConstructorsConstructorDescriptionSlingContextUtil(@NotNull ch.qos.logback.core.Context context, @NotNull Object origin) Constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected @NotNull ObjectReturn the origin where this instance was declaredMethods inherited from class ch.qos.logback.core.spi.ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getStatusManager, setContext
-
Constructor Details
-
SlingContextUtil
public SlingContextUtil(@NotNull @NotNull ch.qos.logback.core.Context context, @NotNull @NotNull Object origin) Constructor- Parameters:
context- the logging contextorigin- the origin object
-
-
Method Details
-
getDeclaredOrigin
Return the origin where this instance was declared- Overrides:
getDeclaredOriginin classch.qos.logback.core.spi.ContextAwareBase- Returns:
- the declared origin
-