public class HybrisLoggingEvent extends Object
LoggingEvent class to allow modifying of the message field and to manage the deny
flag. Since 6.0 it no longer extends LoggingEvent class due to log4j2 migration.| Constructor and Description |
|---|
HybrisLoggingEvent(String fqnOfCategoryClass,
Category logger,
Level level,
Object message,
Throwable throwable)
Creates a new logging event similar to
LoggingEvent. |
| Modifier and Type | Method and Description |
|---|---|
void |
deny()
Sets the deny flag and therefore the event will not be logged anymore.
|
String |
getFQNOfLoggerClass() |
Level |
getLevel() |
Category |
getLogger() |
Object |
getMessage() |
String |
getRenderedMessage() |
Throwable |
getThrowable() |
boolean |
isDenied()
Checks the deny flag.
|
void |
setMessage(Object message)
Sets a new message for this event.
|
public HybrisLoggingEvent(String fqnOfCategoryClass, Category logger, Level level, Object message, Throwable throwable)
LoggingEvent. Resets the deny flag.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.public void deny()
public boolean isDenied()
public Object getMessage()
public void setMessage(Object message)
message - new messagepublic String getRenderedMessage()
public Level getLevel()
public String getFQNOfLoggerClass()
public Category getLogger()
public Throwable getThrowable()
Copyright © 2017 SAP SE. All Rights Reserved.