|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface LoggingConfigurable<T extends LoggingConfigurable<T>>
This interface defines something that can be configured with a log header and
log footer to log before and after a Task is run.
| Method Summary | |
|---|---|
T |
setLogFooter(String s)
Set the task's log footer (the message that is logged to level info after the task has completed successfully). |
T |
setLogHeader(String s)
Set the task's log header (the message that is logged to level info before the task is run). |
T |
setReportLevel(Level l)
Set the Report level to use when running tasks
created by this factory. |
T |
setTraceLogging(boolean b)
Enable or disable trace logging for tasks created by this factory. |
| Method Detail |
|---|
T setLogHeader(String s)
info before the task is run). If no log header is set, the default log
header from AbstractTask.getDefaultLogHeader() is used.
s - The log header. Set to null to not log a header.
thisT setLogFooter(String s)
info after the task has completed successfully). Set to null to
disable the footer.
s - The footer to log.
thisT setTraceLogging(boolean b)
Task configuration is trace logged if trace logging is enabled for the task itself or for its task factory.
b - Set to true to enable trace logging.
this.T setReportLevel(Level l)
Report level to use when running tasks
created by this factory.
l - The report level. If null, the report level will not be
modified.
this.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||