Logback API
Version 0.9.8

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

All Superinterfaces:
ContextAware, FilterAttachable, LifeCycle
All Known Implementing Classes:
AppenderBase, ConsoleAppender, CyclicBufferAppender, DBAppender, DBAppender, DBAppenderBase, FileAppender, JMSAppenderBase, JMSQueueAppender, JMSTopicAppender, ListAppender, RollingFileAppender, SMTPAppender, SMTPAppender, SMTPAppenderBase, SocketAppender, SocketAppender, SocketAppenderBase, SyslogAppender, SyslogAppenderBase, TelnetAppender, WriterAppender

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


Method Summary
 void doAppend(E event)
          This is where an appender accomplishes its work.
 Layout<E> getLayout()
          Returns this appenders layout.
 String getName()
          Get the name of this appender.
 void setLayout(Layout<E> layout)
          Set the Layout for 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, getFilterChainDecision, getFirstFilter
 

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

setLayout

void setLayout(Layout<E> layout)
Set the Layout for this appender.


getLayout

Layout<E> getLayout()
Returns this appenders layout.


setName

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


Logback API
Version 0.9.8

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