ch.qos.logback.classic.sift
Class GSiftingAppender

java.lang.Object
  extended by ch.qos.logback.core.spi.ContextAwareBase
      extended by ch.qos.logback.core.AppenderBase
          extended by ch.qos.logback.classic.sift.GSiftingAppender
All Implemented Interfaces:
ConfigurationContributor, Appender, ContextAware, FilterAttachable, LifeCycle, groovy.lang.GroovyObject

public class GSiftingAppender
extends AppenderBase
implements groovy.lang.GroovyObject, ConfigurationContributor


Field Summary
protected  AppenderTracker appenderTracker
           
 
Fields inherited from class ch.qos.logback.core.AppenderBase
name, started
 
Fields inherited from class ch.qos.logback.core.spi.ContextAwareBase
context
 
Constructor Summary
GSiftingAppender()
           
 
Method Summary
 void append(Object object)
           
 void build()
           
 Appender buildAppender(String value)
           
 NOPAppender buildNOPAppender(String discriminatingValue)
           
 AppenderTracker getAppenderTracker()
           
 groovy.lang.Closure getBuilderClosure()
           
 Discriminator getDiscriminator()
           
 String getDiscriminatorKey()
           
 Map getMappings()
          The list of method mapping from the contributor into the configuration mechanism, e.g.
 groovy.lang.MetaClass getMetaClass()
           
 int getNopaWarningCount()
           
 Object getProperty(String name)
           
protected  long getTimestamp(ILoggingEvent event)
           
 Object invokeMethod(String name, Object args)
           
 void setBuilderClosure(groovy.lang.Closure value)
           
 void setDiscriminator(Discriminator value)
           
 void setMetaClass(groovy.lang.MetaClass metaClass)
           
 void setNopaWarningCount(int value)
           
 void setProperty(String name, Object value)
           
 void sift(groovy.lang.Closure clo)
           
 void start()
           
 void stop()
           
 
Methods inherited from class ch.qos.logback.core.AppenderBase
addFilter, clearAllFilters, doAppend, getCopyOfAttachedFiltersList, getFilterChainDecision, getName, isStarted, setName, toString
 
Methods inherited from class ch.qos.logback.core.spi.ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface ch.qos.logback.core.spi.ContextAware
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, setContext
 

Field Detail

appenderTracker

protected AppenderTracker appenderTracker
Constructor Detail

GSiftingAppender

public GSiftingAppender()
Method Detail

getDiscriminator

public Discriminator getDiscriminator()

setDiscriminator

public void setDiscriminator(Discriminator value)

getBuilderClosure

public groovy.lang.Closure getBuilderClosure()

setBuilderClosure

public void setBuilderClosure(groovy.lang.Closure value)

getNopaWarningCount

public int getNopaWarningCount()

setNopaWarningCount

public void setNopaWarningCount(int value)

getMappings

public Map getMappings()
Description copied from interface: ConfigurationContributor
The list of method mapping from the contributor into the configuration mechanism, e.g. the ConfiguratorDelegate

The key in the map is the method being contributed and the value is the name of the method in the target class.

Specified by:
getMappings in interface ConfigurationContributor
Returns:

start

public void start()
Specified by:
start in interface LifeCycle
Overrides:
start in class AppenderBase

stop

public void stop()
Specified by:
stop in interface LifeCycle
Overrides:
stop in class AppenderBase

getTimestamp

protected long getTimestamp(ILoggingEvent event)

buildAppender

public Appender buildAppender(String value)

append

public void append(Object object)
Specified by:
append in class AppenderBase

buildNOPAppender

public NOPAppender buildNOPAppender(String discriminatingValue)

build

public void build()

sift

public void sift(groovy.lang.Closure clo)

getAppenderTracker

public AppenderTracker getAppenderTracker()

getDiscriminatorKey

public String getDiscriminatorKey()

getMetaClass

public groovy.lang.MetaClass getMetaClass()
Specified by:
getMetaClass in interface groovy.lang.GroovyObject

setMetaClass

public void setMetaClass(groovy.lang.MetaClass metaClass)
Specified by:
setMetaClass in interface groovy.lang.GroovyObject

invokeMethod

public Object invokeMethod(String name,
                           Object args)
Specified by:
invokeMethod in interface groovy.lang.GroovyObject

getProperty

public Object getProperty(String name)
Specified by:
getProperty in interface groovy.lang.GroovyObject

setProperty

public void setProperty(String name,
                        Object value)
Specified by:
setProperty in interface groovy.lang.GroovyObject


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