ch.qos.logback.core
Interface Appender<E>
- All Superinterfaces:
- ContextAware, FilterAttachable<E>, LifeCycle
- All Known Implementing Classes:
- AppenderBase, ConsoleAppender, CyclicBufferAppender, DBAppender, DBAppenderBase, FileAppender, ListAppender, LogcatAppender, NOPAppender, OutputStreamAppender, RollingFileAppender, SiftingAppender, SiftingAppenderBase, SocketAppender, SocketAppenderBase, SyslogAppender, 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. |
java.lang.String |
getName()
Get the name of this appender. |
void |
setName(java.lang.String name)
Set the name of this appender. |
getName
java.lang.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(java.lang.String name)
- Set the name of this appender. The name is used by other components to
identify this appender.