Package de.hybris.platform.util.logging
Class HybrisLoggingEvent
- java.lang.Object
-
- de.hybris.platform.util.logging.HybrisLoggingEvent
-
public class HybrisLoggingEvent extends java.lang.ObjectExtended version of theLoggingEventclass to allow modifying of the message field and to manage the deny flag. Since 6.0 it no longer extendsLoggingEventclass due to log4j2 migration.
-
-
Constructor Summary
Constructors Constructor Description HybrisLoggingEvent(java.lang.String fqnOfCategoryClass, org.apache.log4j.Category logger, org.apache.log4j.Level level, java.lang.Object message, java.lang.Throwable throwable)Creates a new logging event similar toLoggingEvent.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddeny()Sets the deny flag and therefore the event will not be logged anymore.java.lang.StringgetFQNOfLoggerClass()org.apache.log4j.LevelgetLevel()org.apache.log4j.CategorygetLogger()java.lang.ObjectgetMessage()java.lang.StringgetRenderedMessage()java.lang.ThrowablegetThrowable()booleanisDenied()Checks the deny flag.voidsetMessage(java.lang.Object message)Sets a new message for this event.
-
-
-
Constructor Detail
-
HybrisLoggingEvent
public HybrisLoggingEvent(java.lang.String fqnOfCategoryClass, org.apache.log4j.Category logger, org.apache.log4j.Level level, java.lang.Object message, java.lang.Throwable throwable)Creates a new logging event similar toLoggingEvent. Resets the deny flag.- Parameters:
fqnOfCategoryClass- Fully qualified name of the calling category class.logger- The logger generating this event.level- The level of this event.message- The message of this event.throwable- The throwable of this event.
-
-
Method Detail
-
deny
public void deny()
Sets the deny flag and therefore the event will not be logged anymore.
-
isDenied
public boolean isDenied()
Checks the deny flag.- Returns:
- true if the event is denied and will not be logged, false otherwise
-
getMessage
public java.lang.Object getMessage()
-
setMessage
public void setMessage(java.lang.Object message)
Sets a new message for this event.- Parameters:
message- new message
-
getRenderedMessage
public java.lang.String getRenderedMessage()
-
getLevel
public org.apache.log4j.Level getLevel()
-
getFQNOfLoggerClass
public java.lang.String getFQNOfLoggerClass()
-
getLogger
public org.apache.log4j.Category getLogger()
-
getThrowable
public java.lang.Throwable getThrowable()
-
-