Package ch.qos.logback.classic.spi
Class LoggingEvent
java.lang.Object
ch.qos.logback.classic.spi.LoggingEvent
- All Implemented Interfaces:
ILoggingEvent
,DeferredProcessingAware
Deprecated.
This internal logback API is not supported by AEM as a Cloud Service.
The internal representation of logging events. When an affirmative decision
is made to log then a
LoggingEvent
instance is created. This
instance is passed around to the different logback-classic components.
Writers of logback-classic components such as appenders should be aware of
that some of the LoggingEvent fields are initialized lazily. Therefore, an
appender wishing to output data to be later correctly read by a receiver,
must initialize "lazy" fields prior to writing them out. See the
prepareForDeferredProcessing()
method for the exact list.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionObject[]
Deprecated.Deprecated.Get the caller information for this logging event.long
Deprecated.Deprecated.getLevel()
Deprecated.Deprecated.Deprecated.Deprecated.getMdc()
Deprecated.Replaced by [@link #getMDCPropertyMap}Deprecated.Returns the MDC map.Deprecated.Deprecated.Deprecated.Returns the throwable information contained within this event.long
Deprecated.boolean
Deprecated.If this event has caller data, then true is returned.void
Deprecated.This method should be called prior to serializing an event.void
setArgumentArray
(Object[] argArray) Deprecated.void
setCallerData
(StackTraceElement[] callerDataArray) Deprecated.void
Deprecated.void
setLoggerContextRemoteView
(LoggerContextVO loggerContextVO) Deprecated.void
setLoggerName
(String loggerName) Deprecated.void
Deprecated.void
setMDCPropertyMap
(Map<String, String> map) Deprecated.Set the MDC map for this event.void
setMessage
(String message) Deprecated.void
setThreadName
(String threadName) Deprecated.void
Deprecated.Set this event's throwable information.void
setTimeStamp
(long timeStamp) Deprecated.toString()
Deprecated.
-
Constructor Details
-
Method Details
-
setArgumentArray
Deprecated. -
getArgumentArray
Deprecated.- Specified by:
getArgumentArray
in interfaceILoggingEvent
-
getLevel
Deprecated.- Specified by:
getLevel
in interfaceILoggingEvent
-
getLoggerName
Deprecated.- Specified by:
getLoggerName
in interfaceILoggingEvent
-
setLoggerName
Deprecated. -
getThreadName
Deprecated.- Specified by:
getThreadName
in interfaceILoggingEvent
-
setThreadName
Deprecated.- Parameters:
threadName
- The threadName to set.- Throws:
IllegalStateException
- If threadName has been already set.
-
getThrowableProxy
Deprecated.Returns the throwable information contained within this event. May benull
if there is no such information.- Specified by:
getThrowableProxy
in interfaceILoggingEvent
-
setThrowableProxy
Deprecated.Set this event's throwable information. -
prepareForDeferredProcessing
public void prepareForDeferredProcessing()Deprecated.This method should be called prior to serializing an event. It should also be called when using asynchronous or deferred logging. Note that due to performance concerns, this method does NOT extract caller data. It is the responsibility of the caller to extract caller information.- Specified by:
prepareForDeferredProcessing
in interfaceDeferredProcessingAware
- Specified by:
prepareForDeferredProcessing
in interfaceILoggingEvent
-
getLoggerContextVO
Deprecated.- Specified by:
getLoggerContextVO
in interfaceILoggingEvent
-
setLoggerContextRemoteView
Deprecated. -
getMessage
Deprecated.- Specified by:
getMessage
in interfaceILoggingEvent
-
setMessage
Deprecated. -
getTimeStamp
public long getTimeStamp()Deprecated.- Specified by:
getTimeStamp
in interfaceILoggingEvent
-
setTimeStamp
public void setTimeStamp(long timeStamp) Deprecated. -
setLevel
Deprecated. -
getCallerData
Deprecated.Get the caller information for this logging event. If caller information is null at the time of its invocation, this method extracts location information. The collected information is cached for future use.Note that after serialization it is impossible to correctly extract caller information.
- Specified by:
getCallerData
in interfaceILoggingEvent
- Returns:
- the caller data associated with this event.
- See Also:
-
hasCallerData
public boolean hasCallerData()Deprecated.Description copied from interface:ILoggingEvent
If this event has caller data, then true is returned. Otherwise the returned value is null.Logback components wishing to use caller data if available without causing it to be computed can invoke this method before invoking
ILoggingEvent.getCallerData()
.- Specified by:
hasCallerData
in interfaceILoggingEvent
- Returns:
- whether this event has caller data
-
setCallerData
Deprecated. -
getMarker
Deprecated.- Specified by:
getMarker
in interfaceILoggingEvent
-
setMarker
Deprecated. -
getContextBirthTime
public long getContextBirthTime()Deprecated. -
getFormattedMessage
Deprecated.- Specified by:
getFormattedMessage
in interfaceILoggingEvent
-
getMDCPropertyMap
Deprecated.Description copied from interface:ILoggingEvent
Returns the MDC map. The returned value can be an empty map but not null.- Specified by:
getMDCPropertyMap
in interfaceILoggingEvent
-
setMDCPropertyMap
Deprecated.Set the MDC map for this event.- Parameters:
map
-- Since:
- 1.0.8
-
getMdc
Deprecated.Replaced by [@link #getMDCPropertyMap}Synonym for [@link #getMDCPropertyMap}.- Specified by:
getMdc
in interfaceILoggingEvent
-
toString
Deprecated.
-