public class PluginLogger
extends java.util.logging.Logger
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
Constructor | Description |
---|---|
PluginLogger(Plugin context) |
Creates a new PluginLogger that extracts the name from a plugin.
|
Modifier and Type | Method | Description |
---|---|---|
void |
log(java.util.logging.LogRecord logRecord) |
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
public PluginLogger(Plugin context)
context
- A reference to the pluginCopyright © 2018. All rights reserved.