<divclass="inheritance"title="Inheritance Tree"><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html"title="class or interface in java.lang"class="external-link">java.lang.Object</a>
<divclass="inheritance"><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.logging/java/util/logging/Logger.html"title="class or interface in java.util.logging"class="external-link">java.util.logging.Logger</a>
<divclass="type-signature"><spanclass="modifiers">public class </span><spanclass="element-name type-name-label">PluginLogger</span>
<spanclass="extends-implements">extends <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.logging/java/util/logging/Logger.html"title="class or interface in java.util.logging"class="external-link">Logger</a></span></div>
<divclass="block">The PluginLogger class is a modified <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.logging/java/util/logging/Logger.html"title="class or interface in java.util.logging"class="external-link"><code>Logger</code></a> that prepends all
logging calls with the name of the plugin doing the logging. The API for
PluginLogger is exactly the same as <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.logging/java/util/logging/Logger.html"title="class or interface in java.util.logging"class="external-link"><code>Logger</code></a>.</div>
<dlclass="notes">
<dt>See Also:</dt>
<dd>
<ulclass="see-list">
<li><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.logging/java/util/logging/Logger.html"title="class or interface in java.util.logging"class="external-link"><code>Logger</code></a></li>
</ul>
</dd>
</dl>
</section>
<sectionclass="summary">
<ulclass="summary-list">
<!-- =========== FIELD SUMMARY =========== -->
<li>
<sectionclass="field-summary"id="field-summary">
<h2>Field Summary</h2>
<divclass="inherited-list">
<h3id="fields-inherited-from-class-java.util.logging.Logger">Fields inherited from class java.util.logging.<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.logging/java/util/logging/Logger.html"title="class or interface in java.util.logging"class="external-link">Logger</a></h3>
<code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.logging/java/util/logging/Logger.html#global"title="class or interface in java.util.logging"class="external-link">global</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.logging/java/util/logging/Logger.html#GLOBAL_LOGGER_NAME"title="class or interface in java.util.logging"class="external-link">GLOBAL_LOGGER_NAME</a></code></div>
<divclass="col-constructor-name even-row-color"><code><ahref="#%3Cinit%3E(org.bukkit.plugin.Plugin)"class="member-name-link">PluginLogger</a><wbr>(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="Plugin.html"title="interface in org.bukkit.plugin">Plugin</a> context)</code></div>
<divclass="col-last even-row-color">
<divclass="block">Creates a new PluginLogger that extracts the name from a plugin.</div>
<divclass="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="#log(java.util.logging.LogRecord)"class="member-name-link">log</a><wbr>(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.logging/java/util/logging/LogRecord.html"title="class or interface in java.util.logging"class="external-link">LogRecord</a> logRecord)</code></div>
<h3id="methods-inherited-from-class-java.util.logging.Logger">Methods inherited from class java.util.logging.<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.logging/java/util/logging/Logger.html"title="class or interface in java.util.logging"class="external-link">Logger</a></h3>
<code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.logging/java/util/logging/Logger.html#addHandler(java.util.logging.Handler)"title="class or interface in java.util.logging"class="external-link">addHandler</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.logging/java/util/logging/Logger.html#config(java.lang.String)"title="class or interface in java.util.logging"class="external-link">config</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.logging/java/util/logging/Logger.html#config(java.util.function.Supplier)"title="class or interface in java.util.logging"class="external-link">config</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.logging/java/util/logging/Logger.html#entering(java.lang.String,java.lang.String)"title="class or interface in java.util.logging"class="external-link">entering</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.logging/java/util/logging/Logger.html#entering(java.lang.String,java.lang.String,java.lang.Object)"title="class or interface in java.util.logging"class="external-link">entering</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.logging/java/util/logging/Logger.html#entering(java.lang.String,java.lang.String,java.lang.Object%5B%5D)"title="class or interface in java.util.logging"class="external-link">entering</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.logging/java/util/logging/Logger.html#exiting(java.lang.String,java.lang.String)"title="class or interface in java.util.logging"class="external-link">exiting</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.logging/java/util/logging/Logger.html#exiting(java.lang.String,java.lang.String,java.lang.Object)"title="class or interface in java.util.logging"class="external-link">exiting</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.logging/java/util/logging/Logger.html#fine(java.lang.String)"title="class or interface in java.util.logging"class="external-link">fine</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.logging/java/util/logging/Logger.html#fine(java.util.function.Supplier)"title="class or interface in java.util.logging"class="external-link">fine</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.logging/java/util/logging/Logger.html#finer(java.lang.String)"title="class or interface in java.util.logging"class="external-link">finer</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.logging/java/util/logging/Logger.html#finer(java.util.function.Supplier)"title="class or interface in java.util.logging"class="external-link">finer</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.logging/java/util/logging/Logger.html#finest(java.lang.String)"title="class or interface in java.util.logging"class="external-link">finest</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.logging/java/util/logging/Logger.html#finest(java.util.function.Supplier)"title="class or interface in java.util.logging"class="external-link">finest</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.logging/java/util/logging/Logger.html#getAnonymousLogger()"title="class or interface in java.util.logging"class="external-link">getAnonymousLogger</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.logging/java/util/logging/Logger.html#getAnonymousLogger(java.lang.String)"title="class or interface in java.util.logging"class="external-link">getAnonymousLogger</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.logging/java/util/logging/Logger.html#getFilter()"title="class or interface in java.util.logging"class="external-link">getFilter</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.logging/java/util/logging/Logger.html#getGlobal()"title="class or interface in java.util.logging"class="external-link">getGlobal</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.logging
<divclass="inherited-list">
<h3id="methods-inherited-from-class-java.lang.Object">Methods inherited from class java.lang.<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html"title="class or interface in java.lang"class="external-link">Object</a></h3>
<code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#clone()"title="class or interface in java.lang"class="external-link">clone</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"title="class or interface in java.lang"class="external-link">equals</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#finalize()"title="class or interface in java.lang"class="external-link">finalize</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#getClass()"title="class or interface in java.lang"class="external-link">getClass</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#hashCode()"title="class or interface in java.lang"class="external-link">hashCode</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#notify()"title="class or interface in java.lang"class="external-link">notify</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#notifyAll()"title="class or interface in java.lang"class="external-link">notifyAll</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#toString()"title="class or interface in java.lang"class="external-link">toString</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#wait()"title="class or interface in java.lang"class="external-link">wait</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#wait(long)"title="class or interface in java.lang"class="external-link">wait</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#wait(long,int)"title="class or interface in java.lang"class="external-link">wait</a></code></div>
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="element-name">PluginLogger</span><wbr><spanclass="parameters">(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="Plugin.html"title="interface in org.bukkit.plugin">Plugin</a> context)</span></div>
<divclass="block">Creates a new PluginLogger that extracts the name from a plugin.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>context</code> - A reference to the plugin</dd>
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="return-type">void</span> <spanclass="element-name">log</span><wbr><spanclass="parameters">(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.logging/java/util/logging/LogRecord.html"title="class or interface in java.util.logging"class="external-link">LogRecord</a> logRecord)</span></div>
<dlclass="notes">
<dt>Overrides:</dt>
<dd><code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.logging/java/util/logging/Logger.html#log(java.util.logging.LogRecord)"title="class or interface in java.util.logging"class="external-link">log</a></code> in class <code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.logging/java/util/logging/Logger.html"title="class or interface in java.util.logging"class="external-link">Logger</a></code></dd>