Uses of Class
org.apache.log4j.spi.LoggingEvent
Packages that use LoggingEvent
Package
Description
The main log4j package.
This package is used internally.
Package for remote logging.
Provides classes implementing format specifiers in conversion patterns.
Contains part of the System Programming Interface (SPI) needed to
extend log4j.
Contains various appenders, filters and other odds and ends.
XML based components.
-
Uses of LoggingEvent in org.apache.log4j
Methods in org.apache.log4j with parameters of type LoggingEventModifier and TypeMethodDescriptionprotected 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.EnhancedPatternLayout.format(LoggingEvent event) Formats a logging event to a writer.HTMLLayout.format(LoggingEvent event) abstract StringLayout.format(LoggingEvent event) Implement this method to create your own layout format.PatternLayout.format(LoggingEvent event) Produces a formatted string as specified by the conversion pattern.SimpleLayout.format(LoggingEvent event) Returns the log statement in a format consisting of thelevel, followed by " - " and then themessage.TTCCLayout.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 LoggingEventModifier and TypeMethodDescriptionBoundedFIFO.get()Get the first element in the buffer.CyclicBuffer.get()Get the oldest (first) element in the buffer.CyclicBuffer.get(int i) Get the ith oldest event currently in the buffer.Methods in org.apache.log4j.helpers with parameters of type LoggingEventModifier and TypeMethodDescriptionvoidCyclicBuffer.add(LoggingEvent event) Add aneventas the last event in the buffer.intAppenderAttachableImpl.appendLoopOnAppenders(LoggingEvent event) Call thedoAppendmethod on all attached appenders.protected abstract StringPatternConverter.convert(LoggingEvent event) Derived pattern converters must override this method in order to convert conversion specifiers in the correct way.voidDateLayout.dateFormat(StringBuffer buf, LoggingEvent event) voidOnlyOnceErrorHandler.error(String message, Exception e, int errorCode, LoggingEvent event) Prints the message and the stack trace of the exception onSystem.err.voidPatternConverter.format(StringBuffer sbuf, LoggingEvent e) A template method for formatting in a converter specific way.MDCKeySetExtractor.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 LoggingEventModifier and TypeFieldDescriptionprotected ArrayList<LoggingEvent>JDBCAppender.bufferArrayList holding the buffer of Logging Events.Methods in org.apache.log4j.jdbc with parameters of type LoggingEventModifier and TypeMethodDescriptionvoidJDBCAppender.append(LoggingEvent event) Adds the event to the buffer.protected 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 LoggingEventModifier and TypeMethodDescriptionvoidJMSAppender.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 LoggingEventModifier and TypeMethodDescriptionprotected StringBridgePatternConverter.convert(LoggingEvent event) Derived pattern converters must override this method in order to convert conversion specifiers in the correct way.voidBridgePatternConverter.format(StringBuffer sbuf, LoggingEvent e) Format event to string buffer.voidClassNamePatternConverter.format(LoggingEvent event, StringBuffer toAppendTo) Format a logging event.voidDatePatternConverter.format(LoggingEvent event, StringBuffer output) Formats an event into a string buffer.voidFileLocationPatternConverter.format(LoggingEvent event, StringBuffer output) Formats an event into a string buffer.voidFullLocationPatternConverter.format(LoggingEvent event, StringBuffer output) Formats an event into a string buffer.voidLevelPatternConverter.format(LoggingEvent event, StringBuffer output) Formats an event into a string buffer.voidLineLocationPatternConverter.format(LoggingEvent event, StringBuffer output) Formats an event into a string buffer.voidLineSeparatorPatternConverter.format(LoggingEvent event, StringBuffer toAppendTo) Formats an event into a string buffer.voidLiteralPatternConverter.format(LoggingEvent event, StringBuffer toAppendTo) Formats an event into a string buffer.voidLoggerPatternConverter.format(LoggingEvent event, StringBuffer toAppendTo) Formats an event into a string buffer.abstract voidLoggingEventPatternConverter.format(LoggingEvent event, StringBuffer toAppendTo) Formats an event into a string buffer.voidMessagePatternConverter.format(LoggingEvent event, StringBuffer toAppendTo) Formats an event into a string buffer.voidMethodLocationPatternConverter.format(LoggingEvent event, StringBuffer toAppendTo) Formats an event into a string buffer.voidNDCPatternConverter.format(LoggingEvent event, StringBuffer toAppendTo) Formats an event into a string buffer.voidPropertiesPatternConverter.format(LoggingEvent event, StringBuffer toAppendTo) Formats an event into a string buffer.voidRelativeTimePatternConverter.format(LoggingEvent event, StringBuffer toAppendTo) Formats an event into a string buffer.voidSequenceNumberPatternConverter.format(LoggingEvent event, StringBuffer toAppendTo) Formats an event into a string buffer.voidThreadPatternConverter.format(LoggingEvent event, StringBuffer toAppendTo) Formats an event into a string buffer.voidThrowableInformationPatternConverter.format(LoggingEvent event, 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 LoggingEventModifier and TypeMethodDescriptionMapRewritePolicy.rewrite(LoggingEvent source) Rewrite a logging event.PropertyRewritePolicy.rewrite(LoggingEvent source) Rewrite a logging event.ReflectionRewritePolicy.rewrite(LoggingEvent source) Rewrite a logging event.RewritePolicy.rewrite(LoggingEvent source) Rewrite a logging event.Methods in org.apache.log4j.rewrite with parameters of type LoggingEventModifier and TypeMethodDescriptionprotected voidRewriteAppender.append(LoggingEvent event) Subclasses ofAppenderSkeletonshould implement this method to perform actual logging.MapRewritePolicy.rewrite(LoggingEvent source) Rewrite a logging event.PropertyRewritePolicy.rewrite(LoggingEvent source) Rewrite a logging event.ReflectionRewritePolicy.rewrite(LoggingEvent source) Rewrite a logging event.RewritePolicy.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 LoggingEventModifier and TypeMethodDescriptionvoidNOPLogger.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(String message, 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 LoggingEventModifier and TypeMethodDescriptionprotected 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(String message, 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 LoggingEventModifier and TypeMethodDescriptionXMLLayout.format(LoggingEvent event) Formats aLoggingEventin conformance with the log4j.dtd.