Class ContextBasedDiscriminator

    • Constructor Detail

      • ContextBasedDiscriminator

        public ContextBasedDiscriminator()
    • Method Detail

      • getDiscriminatingValue

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

        public java.lang.String getKey()
        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)
      • setDefaultValue

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