Class PluginLogger

java.lang.Object
java.util.logging.Logger
org.bukkit.plugin.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:
  • Constructor Details

    • 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 Details