public class ModuleLogger
extends java.util.logging.Logger
Constructor and Description |
---|
ModuleLogger(java.util.logging.Logger parent,
java.lang.String... modulePath) |
ModuleLogger(org.bukkit.plugin.Plugin plugin,
java.lang.String... modulePath) |
ModuleLogger(java.lang.String... modulePath) |
Modifier and Type | Method and Description |
---|---|
ModuleLogger |
getModule(java.lang.String... path)
Obtains a Module Logger for the path specified
|
void |
handleReflectionMissing(java.lang.String type,
java.lang.String name,
java.lang.Class<?> source)
Handles the message and/or stack trace logging when something related to
reflection is missing
|
void |
log(java.util.logging.LogRecord logRecord) |
void |
once(java.util.logging.Level level,
java.lang.String message)
Logs a simple warning message to the server console, but only does this upon the first invocation.
|
void |
once(java.util.logging.Level level,
java.lang.String message,
java.lang.Throwable t)
Logs a simple warning message with exception information to the server console, but only does this upon the first invocation.
|
void |
trace()
Prints a quick trace line of the method that preceded trace()
|
void |
trace(java.lang.String message)
Prints a quick trace line of the method that preceded trace() with a message
|
void |
warnOnce(java.lang.String message)
Logs a simple warning message to the server console, but only does this upon the first invocation.
|
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, removeHandler, setFilter, setLevel, setParent, setResourceBundle, setUseParentHandlers, severe, severe, throwing, warning, warning
public ModuleLogger(org.bukkit.plugin.Plugin plugin, java.lang.String... modulePath)
public ModuleLogger(java.lang.String... modulePath)
public ModuleLogger(java.util.logging.Logger parent, java.lang.String... modulePath)
public ModuleLogger getModule(java.lang.String... path)
path
- to get the Module Logger forpublic void log(java.util.logging.LogRecord logRecord)
log
in class java.util.logging.Logger
public void trace(java.lang.String message)
message
- to printpublic void trace()
public void warnOnce(java.lang.String message)
message
- to logpublic void once(java.util.logging.Level level, java.lang.String message)
level
- of the messagemessage
- to logpublic void once(java.util.logging.Level level, java.lang.String message, java.lang.Throwable t)
level
- of the messagemessage
- to logt
- throwable to logpublic void handleReflectionMissing(java.lang.String type, java.lang.String name, java.lang.Class<?> source)
type
- of thing that is missingname
- of the thing that is missingsource
- class in which it is missing