Package io.jenkins.plugins.util
Klasse PluginLogger
java.lang.Object
io.jenkins.plugins.util.PluginLogger
A simple logger that prefixes each message with the name of a plugin.
- Autor:
- Ullrich Hafner
-
Konstruktorübersicht
KonstruktorBeschreibungPluginLogger
(PrintStream logger, String pluginName) Creates a newPluginLogger
. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoid
Logs the specified message.void
logEachLine
(Collection<String> lines) Logs the specified messages.
-
Konstruktordetails
-
PluginLogger
Creates a newPluginLogger
.- Parameter:
logger
- the logger to createpluginName
- the name of the plugin
-
-
Methodendetails
-
log
Logs the specified message.- Parameter:
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.- Parameter:
lines
- the messages to log
-