public class CronJobToJspLogListener extends Object implements HybrisLogListener
HybrisLogListener which listens for logs of a single CronJob and prints them to a specified JSP-site.| Constructor and Description |
|---|
CronJobToJspLogListener(CronJob cronjob,
JspContext jspc)
Creates a new listener instance which listens for logs of given cronjob and prints them to given JSP-site.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isEnabledFor(Level level)
Returns true if current cronjob is the managed cronjob of this listener and it is enabled for given level.
|
void |
log(HybrisLoggingEvent event)
If current cronjob is the one managed by this listener, the log will be printed to the managed jsp context.
|
public CronJobToJspLogListener(CronJob cronjob, JspContext jspc)
cronjob - cronjob instance from which all logs will be written to JSPjspc - context holding JSP-site to which the logs will be writtenpublic void log(HybrisLoggingEvent event)
log in interface HybrisLogListenerevent - the log which will be processedpublic boolean isEnabledFor(Level level)
isEnabledFor in interface HybrisLogListenerlevel - level of the log which has to be checked for filteringlog method, false otherwiseCopyright © 2017 SAP SE. All Rights Reserved.