Package de.hybris.platform.cronjob.jalo
Class CronJobLogListener
- java.lang.Object
-
- de.hybris.platform.cronjob.jalo.CronJobLogListener
-
- All Implemented Interfaces:
HybrisLogListener
public class CronJobLogListener extends java.lang.Object implements HybrisLogListener
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceCronJobLogListener.CronJobLogContext
-
Constructor Summary
Constructors Constructor Description CronJobLogListener()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CronJobLogListener.CronJobLogContextgetCurrentContext()booleanisEnabledFor(org.apache.log4j.Level level)Is called before each call oflogto check if the listener is enabled for given log level.voidlog(HybrisLoggingEvent event)Processes in its specific way given log event.static voidsetCurrentContext(CronJobLogListener.CronJobLogContext ctx)static voidunsetsetCurrentContext()
-
-
-
Method Detail
-
setCurrentContext
public static void setCurrentContext(CronJobLogListener.CronJobLogContext ctx)
-
unsetsetCurrentContext
public static void unsetsetCurrentContext()
-
getCurrentContext
public static CronJobLogListener.CronJobLogContext getCurrentContext()
-
log
public void log(HybrisLoggingEvent event)
Description copied from interface:HybrisLogListenerProcesses in its specific way given log event.- Specified by:
login interfaceHybrisLogListener- Parameters:
event- the log which will be processed
-
isEnabledFor
public boolean isEnabledFor(org.apache.log4j.Level level)
Description copied from interface:HybrisLogListenerIs called before each call oflogto check if the listener is enabled for given log level. If the result is true the call oflogwill be performed afterwards, else not. Here, implement your context dependent log level filter.- Specified by:
isEnabledForin interfaceHybrisLogListener- Parameters:
level- level of the log which has to be checked for filtering- Returns:
- true, if level is OK and log can be passed to
logmethod, false otherwise
-
-