public class CronJobLogListener extends Object implements HybrisLogListener
| Modifier and Type | Class and Description |
|---|---|
static interface |
CronJobLogListener.CronJobLogContext |
| Constructor and Description |
|---|
CronJobLogListener() |
| Modifier and Type | Method and Description |
|---|---|
static CronJobLogListener.CronJobLogContext |
getCurrentContext() |
boolean |
isEnabledFor(Level level)
Is called before each call of
log to check if the listener is enabled for given log level. |
void |
log(HybrisLoggingEvent event)
Processes in its specific way given log event.
|
static void |
setCurrentContext(CronJobLogListener.CronJobLogContext ctx) |
static void |
unsetsetCurrentContext() |
public static void setCurrentContext(CronJobLogListener.CronJobLogContext ctx)
public static void unsetsetCurrentContext()
public static CronJobLogListener.CronJobLogContext getCurrentContext()
public void log(HybrisLoggingEvent event)
HybrisLogListenerlog in interface HybrisLogListenerevent - the log which will be processedpublic boolean isEnabledFor(Level level)
HybrisLogListenerlog to check if the listener is enabled for given log level. If the
result is true the call of log will be performed afterwards, else not. Here, implement your context
dependent log level filter.isEnabledFor in interface HybrisLogListenerlevel - level of the log which has to be checked for filteringlog method, false otherwiseCopyright © 2017 SAP SE. All Rights Reserved.