ch.qos.logback.core
Interface Appender<E>

All Superinterfaces:
ContextAware, FilterAttachable<E>, LifeCycle
All Known Implementing Classes:
AppenderBase, AsyncAppenderBase, ConsoleAppender, CyclicBufferAppender, DBAppenderBase, FileAppender, JMSAppenderBase, ListAppender, NOPAppender, OutputStreamAppender, RollingFileAppender, SiftingAppenderBase, SMTPAppenderBase, SocketAppenderBase, SyslogAppenderBase, UnsynchronizedAppenderBase

public interface Appender<E>
extends LifeCycle, ContextAware, FilterAttachable<E>


Method Summary
 void doAppend(E event)
          This is where an appender accomplishes its work.
 String getName()
          Get the name of this appender.
 void setName(String name)
          Set the name of this appender.
 
Methods inherited from interface ch.qos.logback.core.spi.LifeCycle
isStarted, start, stop
 
Methods inherited from interface ch.qos.logback.core.spi.ContextAware
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, setContext
 
Methods inherited from interface ch.qos.logback.core.spi.FilterAttachable
addFilter, clearAllFilters, getCopyOfAttachedFiltersList, getFilterChainDecision
 

Method Detail

getName

String getName()
Get the name of this appender. The name uniquely identifies the appender.


doAppend

void doAppend(E event)
              throws LogbackException
This is where an appender accomplishes its work. Note that the argument is of type Object.

Parameters:
event -
Throws:
LogbackException

setName

void setName(String name)
Set the name of this appender. The name is used by other components to identify this appender.



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