Class PluginLogger

  • public class PluginLogger
    extends Object
    A simple logger that prefixes each message with the name of a plugin.
    Ullrich Hafner
    • Constructor Detail

      • PluginLogger

        public PluginLogger​(PrintStream logger,
                            String pluginName)
        Creates a new PluginLogger.
        logger - the logger to create
        pluginName - the name of the plugin
    • Method Detail

      • log

        public void log​(String format,
                        Object... args)
        Logs the specified message.
        format - A format string
        args - 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

        public void logEachLine​(Collection<String> lines)
        Logs the specified messages.
        lines - the messages to log