Class CronJobLogListener

java.lang.Object
de.hybris.platform.cronjob.jalo.CronJobLogListener
All Implemented Interfaces:
HybrisLogListener

public class CronJobLogListener extends Object implements HybrisLogListener
  • Constructor Details

    • CronJobLogListener

      public CronJobLogListener()
  • Method Details

    • 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: HybrisLogListener
      Processes in its specific way given log event.
      Specified by:
      log in interface HybrisLogListener
      Parameters:
      event - the log which will be processed
    • isEnabledFor

      public boolean isEnabledFor(org.apache.log4j.Level level)
      Description copied from interface: HybrisLogListener
      Is called before each call of log 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.
      Specified by:
      isEnabledFor in interface HybrisLogListener
      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 log method, false otherwise