程序包 org.bukkit.plugin

# 类 PluginLogger

java.lang.Object
java.util.logging.Logger
org.bukkit.plugin.PluginLogger

public class PluginLogger extends Logger
PluginLogger类是经过修改的`Logger`, 用途是在日志记录方法调用前 加上记录日志的插件的名称. 本类提供的API与`Logger`完全一致.

另请参阅:
  - `Logger`

- ## 字段概要

  ### 从类继承的字段 java.util.logging.Logger

  `global, GLOBAL_LOGGER_NAME`

- ## 构造器概要

  构造器
  构造器
  说明
  `PluginLogger(@NotNull Plugin context)`
  以指定插件创建一个新的 PluginLogger, 其插件名从插件对象中提取.

- ## 方法概要

  修饰符和类型
  方法
  说明
  `void`
  `log(@NotNull LogRecord logRecord)`

  ### 从类继承的方法 java.util.logging.Logger

  `addHandler, config, config, entering, entering, entering, exiting, exiting, fine, fine, finer, finer, finest, finest, getAnonymousLogger, getAnonymousLogger, getFilter, getGlobal, getHandlers, getLevel, getLogger, getLogger, getName, getParent, getResourceBundle, getResourceBundleName, getUseParentHandlers, info, info, isLoggable, log, log, log, log, log, log, logp, logp, logp, logp, logp, logp, logrb, logrb, logrb, logrb, logrb, logrb, logrb, logrb, removeHandler, setFilter, setLevel, setParent, setResourceBundle, setUseParentHandlers, severe, severe, throwing, warning, warning`

  ### 从类继承的方法 java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## 构造器详细资料

  - ### PluginLogger

    public PluginLogger(@NotNull @NotNull Plugin context)
    以指定插件创建一个新的 PluginLogger, 其插件名从插件对象中提取.

    原文:Creates a new PluginLogger that extracts the name from a plugin.

    参数:
      `context` - 插件对象

- ## 方法详细资料

  - ### log

    public void log(@NotNull @NotNull LogRecord logRecord)
    覆盖:
      `log` 在类中 `Logger`