Class JNDIBasedContextDiscriminator

  • All Implemented Interfaces:
    Discriminator<ILoggingEvent>, ContextAware, LifeCycle

    @Deprecated(since="2022-01-27")
    public class JNDIBasedContextDiscriminator
    extends AbstractDiscriminator<ILoggingEvent>
    Deprecated.
    This internal logback API is not supported by AEM as a Cloud Service.
    This discriminator returns the value context as determined by JNDI. If the said value is null, then a default value is returned.

    Both Key and the DefaultValue are user specified properties.

    • Constructor Detail

      • JNDIBasedContextDiscriminator

        public JNDIBasedContextDiscriminator()
        Deprecated.
    • Method Detail

      • getDiscriminatingValue

        public java.lang.String getDiscriminatingValue​(ILoggingEvent event)
        Deprecated.
        Return the name of the current context name as found in the logging event.
        Returns:
      • getKey

        public java.lang.String getKey()
        Deprecated.
        Description copied from interface: Discriminator
        The key or variable name under which the discriminating value should be exported into the host environment.
        Returns:
      • setKey

        public void setKey​(java.lang.String key)
        Deprecated.
      • getDefaultValue

        public java.lang.String getDefaultValue()
        Deprecated.
        Returns:
        See Also:
        setDefaultValue(String)
      • setDefaultValue

        public void setDefaultValue​(java.lang.String defaultValue)
        Deprecated.
        The default context name in case the context name is not set for the current logging event.
        Parameters:
        defaultValue -