Package ch.qos.logback.classic.spi
Class LoggingEvent
- java.lang.Object
 - 
- ch.qos.logback.classic.spi.LoggingEvent
 
 
- 
- All Implemented Interfaces:
 ILoggingEvent,DeferredProcessingAware
@Deprecated(since="2022-01-27") public class LoggingEvent extends java.lang.Object implements ILoggingEvent
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 aLoggingEventinstance 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 Constructor Description LoggingEvent()Deprecated.LoggingEvent(java.lang.String fqcn, Logger logger, Level level, java.lang.String message, java.lang.Throwable throwable, java.lang.Object[] argArray)Deprecated. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.Object[]getArgumentArray()Deprecated.java.lang.StackTraceElement[]getCallerData()Deprecated.Get the caller information for this logging event.longgetContextBirthTime()Deprecated.java.lang.StringgetFormattedMessage()Deprecated.LevelgetLevel()Deprecated.LoggerContextVOgetLoggerContextVO()Deprecated.java.lang.StringgetLoggerName()Deprecated.MarkergetMarker()Deprecated.java.util.Map<java.lang.String,java.lang.String>getMdc()Deprecated.Replaced by [@link #getMDCPropertyMap}java.util.Map<java.lang.String,java.lang.String>getMDCPropertyMap()Deprecated.Returns the MDC map.java.lang.StringgetMessage()Deprecated.java.lang.StringgetThreadName()Deprecated.IThrowableProxygetThrowableProxy()Deprecated.Returns the throwable information contained within this event.longgetTimeStamp()Deprecated.booleanhasCallerData()Deprecated.If this event has caller data, then true is returned.voidprepareForDeferredProcessing()Deprecated.This method should be called prior to serializing an event.voidsetArgumentArray(java.lang.Object[] argArray)Deprecated.voidsetCallerData(java.lang.StackTraceElement[] callerDataArray)Deprecated.voidsetLevel(Level level)Deprecated.voidsetLoggerContextRemoteView(LoggerContextVO loggerContextVO)Deprecated.voidsetLoggerName(java.lang.String loggerName)Deprecated.voidsetMarker(Marker marker)Deprecated.voidsetMDCPropertyMap(java.util.Map<java.lang.String,java.lang.String> map)Deprecated.Set the MDC map for this event.voidsetMessage(java.lang.String message)Deprecated.voidsetThreadName(java.lang.String threadName)Deprecated.voidsetThrowableProxy(ThrowableProxy tp)Deprecated.Set this event's throwable information.voidsetTimeStamp(long timeStamp)Deprecated.java.lang.StringtoString()Deprecated. 
 - 
 
- 
- 
Method Detail
- 
setArgumentArray
public void setArgumentArray(java.lang.Object[] argArray)
Deprecated. 
- 
getArgumentArray
public java.lang.Object[] getArgumentArray()
Deprecated.- Specified by:
 getArgumentArrayin interfaceILoggingEvent
 
- 
getLevel
public Level getLevel()
Deprecated.- Specified by:
 getLevelin interfaceILoggingEvent
 
- 
getLoggerName
public java.lang.String getLoggerName()
Deprecated.- Specified by:
 getLoggerNamein interfaceILoggingEvent
 
- 
setLoggerName
public void setLoggerName(java.lang.String loggerName)
Deprecated. 
- 
getThreadName
public java.lang.String getThreadName()
Deprecated.- Specified by:
 getThreadNamein interfaceILoggingEvent
 
- 
setThreadName
public void setThreadName(java.lang.String threadName) throws java.lang.IllegalStateExceptionDeprecated.- Parameters:
 threadName- The threadName to set.- Throws:
 java.lang.IllegalStateException- If threadName has been already set.
 
- 
getThrowableProxy
public IThrowableProxy getThrowableProxy()
Deprecated.Returns the throwable information contained within this event. May benullif there is no such information.- Specified by:
 getThrowableProxyin interfaceILoggingEvent
 
- 
setThrowableProxy
public void setThrowableProxy(ThrowableProxy tp)
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:
 prepareForDeferredProcessingin interfaceDeferredProcessingAware- Specified by:
 prepareForDeferredProcessingin interfaceILoggingEvent
 
- 
getLoggerContextVO
public LoggerContextVO getLoggerContextVO()
Deprecated.- Specified by:
 getLoggerContextVOin interfaceILoggingEvent
 
- 
setLoggerContextRemoteView
public void setLoggerContextRemoteView(LoggerContextVO loggerContextVO)
Deprecated. 
- 
getMessage
public java.lang.String getMessage()
Deprecated.- Specified by:
 getMessagein interfaceILoggingEvent
 
- 
setMessage
public void setMessage(java.lang.String message)
Deprecated. 
- 
getTimeStamp
public long getTimeStamp()
Deprecated.- Specified by:
 getTimeStampin interfaceILoggingEvent
 
- 
setTimeStamp
public void setTimeStamp(long timeStamp)
Deprecated. 
- 
setLevel
public void setLevel(Level level)
Deprecated. 
- 
getCallerData
public java.lang.StackTraceElement[] 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:
 getCallerDatain interfaceILoggingEvent- Returns:
 - the caller data associated with this event.
 - See Also:
 ILoggingEvent.hasCallerData()
 
- 
hasCallerData
public boolean hasCallerData()
Deprecated.Description copied from interface:ILoggingEventIf 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:
 hasCallerDatain interfaceILoggingEvent- Returns:
 - whether this event has caller data
 
 
- 
setCallerData
public void setCallerData(java.lang.StackTraceElement[] callerDataArray)
Deprecated. 
- 
getMarker
public Marker getMarker()
Deprecated.- Specified by:
 getMarkerin interfaceILoggingEvent
 
- 
setMarker
public void setMarker(Marker marker)
Deprecated. 
- 
getContextBirthTime
public long getContextBirthTime()
Deprecated. 
- 
getFormattedMessage
public java.lang.String getFormattedMessage()
Deprecated.- Specified by:
 getFormattedMessagein interfaceILoggingEvent
 
- 
getMDCPropertyMap
public java.util.Map<java.lang.String,java.lang.String> getMDCPropertyMap()
Deprecated.Description copied from interface:ILoggingEventReturns the MDC map. The returned value can be an empty map but not null.- Specified by:
 getMDCPropertyMapin interfaceILoggingEvent
 
- 
setMDCPropertyMap
public void setMDCPropertyMap(java.util.Map<java.lang.String,java.lang.String> map)
Deprecated.Set the MDC map for this event.- Parameters:
 map-- Since:
 - 1.0.8
 
 
- 
getMdc
public java.util.Map<java.lang.String,java.lang.String> getMdc()
Deprecated.Replaced by [@link #getMDCPropertyMap}Synonym for [@link #getMDCPropertyMap}.- Specified by:
 getMdcin interfaceILoggingEvent
 
- 
toString
public java.lang.String toString()
Deprecated.- Overrides:
 toStringin classjava.lang.Object
 
 - 
 
 -