ch.qos.logback.core.sift
Interface Discriminator<E>

Type Parameters:
E -
All Superinterfaces:
LifeCycle

public interface Discriminator<E>
extends LifeCycle

Implement this interface in order to compute a discriminating value for a given event of type <E>.

The returned value can depend on any data available at the time of the call, including data contained within the currently running thread.

Author:
Ceki Gülcü

Method Summary
 String getDiscriminatingValue(E e)
          Given event 'e' return a discriminating value.
 String getKey()
           
 
Methods inherited from interface ch.qos.logback.core.spi.LifeCycle
isStarted, start, stop
 

Method Detail

getDiscriminatingValue

String getDiscriminatingValue(E e)
Given event 'e' return a discriminating value.

Parameters:
e -
Returns:

getKey

String getKey()
Returns:


Copyright © 2005-2010 QOS.ch. All Rights Reserved.