Uses of Class
org.apache.log4j.spi.LoggingEvent
-
Packages that use LoggingEvent Package Description org.apache.log4j The main log4j package.org.apache.log4j.helpers This package is used internally.org.apache.log4j.jdbc org.apache.log4j.net Package for remote logging.org.apache.log4j.pattern Provides classes implementing format specifiers in conversion patterns.org.apache.log4j.rewrite org.apache.log4j.spi Contains part of the System Programming Interface (SPI) needed to extend log4j.org.apache.log4j.varia Contains various appenders, filters and other odds and ends.org.apache.log4j.xml XML based components. -
-
Uses of LoggingEvent in org.apache.log4j
Methods in org.apache.log4j with parameters of type LoggingEvent Modifier and Type Method Description protected abstract voidAppenderSkeleton. append(LoggingEvent event)Subclasses ofAppenderSkeletonshould implement this method to perform actual logging.voidAsyncAppender. append(LoggingEvent event)Subclasses ofAppenderSkeletonshould implement this method to perform actual logging.voidWriterAppender. append(LoggingEvent event)This method is called by theAppenderSkeleton.doAppend(org.apache.log4j.spi.LoggingEvent)method.voidCategory. callAppenders(LoggingEvent event)Call the appenders in the hierrachy starting atthis.voidAppender. doAppend(LoggingEvent event)Log inAppenderspecific way.voidAppenderSkeleton. doAppend(LoggingEvent event)This method performs threshold checks and invokes filters before delegating actual logging to the subclasses specificAppenderSkeleton.append(org.apache.log4j.spi.LoggingEvent)method.java.lang.StringEnhancedPatternLayout. format(LoggingEvent event)Formats a logging event to a writer.java.lang.StringHTMLLayout. format(LoggingEvent event)abstract java.lang.StringLayout. format(LoggingEvent event)Implement this method to create your own layout format.java.lang.StringPatternLayout. format(LoggingEvent event)Produces a formatted string as specified by the conversion pattern.java.lang.StringSimpleLayout. format(LoggingEvent event)Returns the log statement in a format consisting of thelevel, followed by " - " and then themessage.java.lang.StringTTCCLayout. format(LoggingEvent event)In addition to the level of the statement and message, the returned byte array includes time, thread, category andNDCinformation.protected booleanWriterAppender. shouldFlush(LoggingEvent event)Determines whether the writer should be flushed after this event is written.protected voidDailyRollingFileAppender. subAppend(LoggingEvent event)This method differentiates DailyRollingFileAppender from its super class.protected voidRollingFileAppender. subAppend(LoggingEvent event)This method differentiates RollingFileAppender from its super class.protected voidWriterAppender. subAppend(LoggingEvent event)Actual writing occurs here. -
Uses of LoggingEvent in org.apache.log4j.helpers
Methods in org.apache.log4j.helpers that return LoggingEvent Modifier and Type Method Description LoggingEventBoundedFIFO. get()Get the first element in the buffer.LoggingEventCyclicBuffer. get()Get the oldest (first) element in the buffer.LoggingEventCyclicBuffer. get(int i)Get the ith oldest event currently in the buffer.Methods in org.apache.log4j.helpers with parameters of type LoggingEvent Modifier and Type Method Description voidCyclicBuffer. add(LoggingEvent event)Add aneventas the last event in the buffer.intAppenderAttachableImpl. appendLoopOnAppenders(LoggingEvent event)Call thedoAppendmethod on all attached appenders.protected abstract java.lang.StringPatternConverter. convert(LoggingEvent event)Derived pattern converters must override this method in order to convert conversion specifiers in the correct way.voidDateLayout. dateFormat(java.lang.StringBuffer buf, LoggingEvent event)voidOnlyOnceErrorHandler. error(java.lang.String message, java.lang.Exception e, int errorCode, LoggingEvent event)Prints the message and the stack trace of the exception onSystem.err.voidPatternConverter. format(java.lang.StringBuffer sbuf, LoggingEvent e)A template method for formatting in a converter specific way.java.util.SetMDCKeySetExtractor. getPropertyKeySet(LoggingEvent event)voidBoundedFIFO. put(LoggingEvent o)Place aLoggingEventin the buffer. -
Uses of LoggingEvent in org.apache.log4j.jdbc
Fields in org.apache.log4j.jdbc with type parameters of type LoggingEvent Modifier and Type Field Description protected java.util.ArrayList<LoggingEvent>JDBCAppender. bufferArrayList holding the buffer of Logging Events.Methods in org.apache.log4j.jdbc with parameters of type LoggingEvent Modifier and Type Method Description voidJDBCAppender. append(LoggingEvent event)Adds the event to the buffer.protected java.lang.StringJDBCAppender. getLogStatement(LoggingEvent event)As of 1.2.18.1JDBCAppender.getLogStatement(org.apache.log4j.spi.LoggingEvent)is no longer in use. -
Uses of LoggingEvent in org.apache.log4j.net
Methods in org.apache.log4j.net with parameters of type LoggingEvent Modifier and Type Method Description voidJMSAppender. append(LoggingEvent event)This method called byAppenderSkeleton.doAppend(org.apache.log4j.spi.LoggingEvent)method to do most of the real appending work.voidSMTPAppender. append(LoggingEvent event)Perform SMTPAppender specific appending actions, mainly adding the event to a cyclic buffer and checking if the event triggers an e-mail to be sent.voidSocketAppender. append(LoggingEvent event)voidSocketHubAppender. append(LoggingEvent event)Append an event to all of current connections.voidSyslogAppender. append(LoggingEvent event)protected voidTelnetAppender. append(LoggingEvent event)Handles a log event. -
Uses of LoggingEvent in org.apache.log4j.pattern
Methods in org.apache.log4j.pattern with parameters of type LoggingEvent Modifier and Type Method Description protected java.lang.StringBridgePatternConverter. convert(LoggingEvent event)Derived pattern converters must override this method in order to convert conversion specifiers in the correct way.voidBridgePatternConverter. format(java.lang.StringBuffer sbuf, LoggingEvent e)Format event to string buffer.voidClassNamePatternConverter. format(LoggingEvent event, java.lang.StringBuffer toAppendTo)Format a logging event.voidDatePatternConverter. format(LoggingEvent event, java.lang.StringBuffer output)Formats an event into a string buffer.voidFileLocationPatternConverter. format(LoggingEvent event, java.lang.StringBuffer output)Formats an event into a string buffer.voidFullLocationPatternConverter. format(LoggingEvent event, java.lang.StringBuffer output)Formats an event into a string buffer.voidLevelPatternConverter. format(LoggingEvent event, java.lang.StringBuffer output)Formats an event into a string buffer.voidLineLocationPatternConverter. format(LoggingEvent event, java.lang.StringBuffer output)Formats an event into a string buffer.voidLineSeparatorPatternConverter. format(LoggingEvent event, java.lang.StringBuffer toAppendTo)Formats an event into a string buffer.voidLiteralPatternConverter. format(LoggingEvent event, java.lang.StringBuffer toAppendTo)Formats an event into a string buffer.voidLoggerPatternConverter. format(LoggingEvent event, java.lang.StringBuffer toAppendTo)Formats an event into a string buffer.abstract voidLoggingEventPatternConverter. format(LoggingEvent event, java.lang.StringBuffer toAppendTo)Formats an event into a string buffer.voidMessagePatternConverter. format(LoggingEvent event, java.lang.StringBuffer toAppendTo)Formats an event into a string buffer.voidMethodLocationPatternConverter. format(LoggingEvent event, java.lang.StringBuffer toAppendTo)Formats an event into a string buffer.voidNDCPatternConverter. format(LoggingEvent event, java.lang.StringBuffer toAppendTo)Formats an event into a string buffer.voidPropertiesPatternConverter. format(LoggingEvent event, java.lang.StringBuffer toAppendTo)Formats an event into a string buffer.voidRelativeTimePatternConverter. format(LoggingEvent event, java.lang.StringBuffer toAppendTo)Formats an event into a string buffer.voidSequenceNumberPatternConverter. format(LoggingEvent event, java.lang.StringBuffer toAppendTo)Formats an event into a string buffer.voidThreadPatternConverter. format(LoggingEvent event, java.lang.StringBuffer toAppendTo)Formats an event into a string buffer.voidThrowableInformationPatternConverter. format(LoggingEvent event, java.lang.StringBuffer toAppendTo)Formats an event into a string buffer. -
Uses of LoggingEvent in org.apache.log4j.rewrite
Methods in org.apache.log4j.rewrite that return LoggingEvent Modifier and Type Method Description LoggingEventMapRewritePolicy. rewrite(LoggingEvent source)Rewrite a logging event.LoggingEventPropertyRewritePolicy. rewrite(LoggingEvent source)Rewrite a logging event.LoggingEventReflectionRewritePolicy. rewrite(LoggingEvent source)Rewrite a logging event.LoggingEventRewritePolicy. rewrite(LoggingEvent source)Rewrite a logging event.Methods in org.apache.log4j.rewrite with parameters of type LoggingEvent Modifier and Type Method Description protected voidRewriteAppender. append(LoggingEvent event)Subclasses ofAppenderSkeletonshould implement this method to perform actual logging.LoggingEventMapRewritePolicy. rewrite(LoggingEvent source)Rewrite a logging event.LoggingEventPropertyRewritePolicy. rewrite(LoggingEvent source)Rewrite a logging event.LoggingEventReflectionRewritePolicy. rewrite(LoggingEvent source)Rewrite a logging event.LoggingEventRewritePolicy. rewrite(LoggingEvent source)Rewrite a logging event. -
Uses of LoggingEvent in org.apache.log4j.spi
Methods in org.apache.log4j.spi with parameters of type LoggingEvent Modifier and Type Method Description voidNOPLogger. callAppenders(LoggingEvent event)Call the appenders in the hierrachy starting atthis.abstract intFilter. decide(LoggingEvent event)If the decision isDENY, then the event will be dropped.voidErrorHandler. error(java.lang.String message, java.lang.Exception e, int errorCode, LoggingEvent event)This method is invoked to handle the error.booleanTriggeringEventEvaluator. isTriggeringEvent(LoggingEvent event)Is this the triggering event? -
Uses of LoggingEvent in org.apache.log4j.varia
Methods in org.apache.log4j.varia with parameters of type LoggingEvent Modifier and Type Method Description protected voidNullAppender. append(LoggingEvent event)Does not do anything.intDenyAllFilter. decide(LoggingEvent event)Always returns the integer constantFilter.DENYregardless of theLoggingEventparameter.intLevelMatchFilter. decide(LoggingEvent event)Return the decision of this filter.intLevelRangeFilter. decide(LoggingEvent event)Return the decision of this filter.intStringMatchFilter. decide(LoggingEvent event)ReturnsFilter.NEUTRALis there is no string match.voidNullAppender. doAppend(LoggingEvent event)Does not do anything.voidFallbackErrorHandler. error(java.lang.String message, java.lang.Exception e, int errorCode, LoggingEvent event)Prints the message and the stack trace of the exception onSystem.err. -
Uses of LoggingEvent in org.apache.log4j.xml
Methods in org.apache.log4j.xml with parameters of type LoggingEvent Modifier and Type Method Description java.lang.StringXMLLayout. format(LoggingEvent event)Formats aLoggingEventin conformance with the log4j.dtd.
-