public class LogHandler extends Object
TaskListener instance.| Constructor and Description |
|---|
LogHandler(hudson.model.TaskListener listener,
String name)
Creates a new
LogHandler. |
LogHandler(hudson.model.TaskListener listener,
String name,
edu.hm.hafner.util.FilteredLog logger)
Creates a new
LogHandler. |
| Modifier and Type | Method and Description |
|---|---|
void |
log(edu.hm.hafner.util.FilteredLog logger)
Log all info and error messages that are stored in the set of issues.
|
void |
log(String format,
Object... args)
Logs the specified message.
|
public LogHandler(hudson.model.TaskListener listener,
String name)
LogHandler.listener - the task listener that will print all log messagesname - the name of the loggerpublic LogHandler(hudson.model.TaskListener listener,
String name,
edu.hm.hafner.util.FilteredLog logger)
LogHandler.listener - the task listener that will print all log messagesname - the name of the loggerlogger - the logger that contains the actual log messagespublic void log(edu.hm.hafner.util.FilteredLog logger)
logger - the logger with the collected messages@FormatMethod public void log(String format, Object... args)
format - A format stringargs - Arguments referenced by the format specifiers in the format string. If there are more arguments than
format specifiers, the extra arguments are ignored. The number of arguments is variable and may be
zero.Copyright © 2016–2020. All rights reserved.