public class SMTPAppender extends SMTPAppenderBase<ILoggingEvent>
cbTracker, discriminator, eventEvaluator, layout, session, subjectLayout
name, started
context
Constructor and Description |
---|
SMTPAppender()
The default constructor will instantiate the appender with a
EventEvaluator that will trigger on events with level
ERROR or higher. |
SMTPAppender(EventEvaluator<ILoggingEvent> eventEvaluator)
Use the parameter as the
EventEvaluator for this SMTPAppender. |
Modifier and Type | Method and Description |
---|---|
protected boolean |
eventMarksEndOfLife(ILoggingEvent eventObject) |
protected void |
fillBuffer(CyclicBuffer<ILoggingEvent> cb,
StringBuffer sbuf) |
boolean |
isIncludeCallerData() |
protected PatternLayout |
makeNewToPatternLayout(String toPattern) |
protected Layout<ILoggingEvent> |
makeSubjectLayout(String subjectStr) |
void |
setIncludeCallerData(boolean includeCallerData) |
void |
start() |
protected void |
subAppend(CyclicBuffer<ILoggingEvent> cb,
ILoggingEvent event)
Perform SMTPAppender specific appending actions, mainly adding the event to
a cyclic buffer.
|
addTo, append, checkEntryConditions, getCharsetEncoding, getCyclicBufferTracker, getDiscriminator, getFrom, getJndiLocation, getLayout, getLocalhost, getPassword, getSmtpHost, getSMTPHost, getSmtpPort, getSMTPPort, getSubject, getToAsListOfString, getToList, getUsername, isAsynchronousSending, isSessionViaJNDI, isSSL, isSTARTTLS, sendBuffer, setAsynchronousSending, setCharsetEncoding, setCyclicBufferTracker, setDiscriminator, setEvaluator, setFrom, setJndiLocation, setLayout, setLocalhost, setPassword, setSessionViaJNDI, setSmtpHost, setSMTPHost, setSmtpPort, setSMTPPort, setSSL, setSTARTTLS, setSubject, setUsername, stop
addFilter, clearAllFilters, doAppend, getCopyOfAttachedFiltersList, getFilterChainDecision, getName, isStarted, setName, toString
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContext
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, setContext
public SMTPAppender()
EventEvaluator
that will trigger on events with level
ERROR or higher.public SMTPAppender(EventEvaluator<ILoggingEvent> eventEvaluator)
EventEvaluator
for this SMTPAppender.public void start()
start
in interface LifeCycle
start
in class SMTPAppenderBase<ILoggingEvent>
protected void subAppend(CyclicBuffer<ILoggingEvent> cb, ILoggingEvent event)
subAppend
in class SMTPAppenderBase<ILoggingEvent>
protected void fillBuffer(CyclicBuffer<ILoggingEvent> cb, StringBuffer sbuf)
fillBuffer
in class SMTPAppenderBase<ILoggingEvent>
protected boolean eventMarksEndOfLife(ILoggingEvent eventObject)
eventMarksEndOfLife
in class SMTPAppenderBase<ILoggingEvent>
protected Layout<ILoggingEvent> makeSubjectLayout(String subjectStr)
makeSubjectLayout
in class SMTPAppenderBase<ILoggingEvent>
protected PatternLayout makeNewToPatternLayout(String toPattern)
makeNewToPatternLayout
in class SMTPAppenderBase<ILoggingEvent>
public boolean isIncludeCallerData()
public void setIncludeCallerData(boolean includeCallerData)
Copyright © 2005–2017 QOS.ch. All rights reserved.