Class PaperPluginLogger

java.lang.Object
java.util.logging.Logger
com.destroystokyo.paper.utils.PaperPluginLogger

public final class PaperPluginLogger extends Logger
Prevents plugins (e.g. Essentials) from changing the parent of the plugin logger.
  • Method Details

    • getLogger

      @Deprecated(forRemoval=true) public static Logger getLogger(PluginDescriptionFile description)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getLogger

      public static Logger getLogger(PluginMeta meta)
      Creates a logger for the given plugin and registers it with the LogManager.

      If a logger with the same name is already registered, that logger is returned instead.

      Parameters:
      meta - the meta of the plugin to create the logger for
      Returns:
      the logger for the plugin
    • setParent

      public void setParent(Logger parent)
      Overrides:
      setParent in class Logger