Class ContextBasedDiscriminator

    • Constructor Detail

      • ContextBasedDiscriminator

        public ContextBasedDiscriminator()
    • Method Detail

      • getDiscriminatingValue

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

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

        public void setKey​(String key)
      • setDefaultValue

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