Package io.jenkins.plugins.util
Class PluginLogger
java.lang.Object
io.jenkins.plugins.util.PluginLogger
A simple logger that prefixes each message with the name of a plugin.
- Author:
- Ullrich Hafner
-
Constructor Summary
ConstructorDescriptionPluginLogger
(PrintStream logger, String pluginName) Creates a newPluginLogger
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Logs the specified message.void
logEachLine
(Collection<String> lines) Logs the specified messages.
-
Constructor Details
-
PluginLogger
Creates a newPluginLogger
.- Parameters:
logger
- the logger to createpluginName
- the name of the plugin
-
-
Method Details
-
log
Logs the specified message.- Parameters:
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.
-
logEachLine
Logs the specified messages.- Parameters:
lines
- the messages to log
-