public class PluginLogger extends Object
| Constructor and Description |
|---|
PluginLogger(PrintStream logger,
String pluginName)
Creates a new
PluginLogger. |
| Modifier and Type | Method and Description |
|---|---|
void |
log(String format,
Object... args)
Logs the specified message.
|
void |
logEachLine(Collection<String> lines)
Logs the specified messages.
|
public PluginLogger(PrintStream logger, String pluginName)
PluginLogger.logger - the logger to createpluginName - the name of the plugin@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.public void logEachLine(Collection<String> lines)
lines - the messages to logCopyright © 2016–2021. All rights reserved.