|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.logging.Logger
org.bukkit.plugin.PluginLogger
public class PluginLogger
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.
Logger| Field Summary |
|---|
| Fields inherited from class java.util.logging.Logger |
|---|
global |
| Constructor Summary | |
|---|---|
PluginLogger(Plugin context)
Creates a new PluginLogger that extracts the name from a plugin. |
|
| Method Summary | |
|---|---|
void |
log(LogRecord logRecord)
|
| Methods inherited from class java.util.logging.Logger |
|---|
addHandler, config, entering, entering, entering, exiting, exiting, fine, finer, finest, getAnonymousLogger, getAnonymousLogger, getFilter, getHandlers, getLevel, getLogger, getLogger, getName, getParent, getResourceBundle, getResourceBundleName, getUseParentHandlers, info, isLoggable, log, log, log, log, logp, logp, logp, logp, logrb, logrb, logrb, logrb, removeHandler, setFilter, setLevel, setParent, setUseParentHandlers, severe, throwing, warning |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PluginLogger(Plugin context)
context - A reference to the plugin| Method Detail |
|---|
public void log(LogRecord logRecord)
log in class Logger
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||