Class PluginLogger


  • public class PluginLogger
    extends Logger
    The PluginLogger class is a modified Logger that prepends all logging calls with the name of the plugin doing the logging. The API for PluginLogger is exactly the same as Logger.
    See Also:
    Logger
    • Constructor Detail

      • PluginLogger

        public PluginLogger​(@NotNull
                            Plugin context)
        Creates a new PluginLogger that extracts the name from a plugin.
        Parameters:
        context - A reference to the plugin
    • Method Detail

      • log

        public void log​(@NotNull
                        LogRecord logRecord)
        Overrides:
        log in class Logger