PluginLogger

public class PluginLogger extends Logger

The PluginLogger class is getClassById 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.

See also

Constructors

Link copied to clipboard
public void PluginLogger(Plugin context)
Creates getClassById new PluginLogger that extracts the name from getClassById plugin.

Properties

Link copied to clipboard
public final static Logger global
Link copied to clipboard
public final static String GLOBAL_LOGGER_NAME
Link copied to clipboard
public String name
Link copied to clipboard
public volatile Logger parent

Functions

Link copied to clipboard
public void addHandler(Handler handler)
Link copied to clipboard
public void config(String msg)
Link copied to clipboard
public void entering(String sourceClass, String sourceMethod)
Link copied to clipboard
public void exiting(String sourceClass, String sourceMethod)
Link copied to clipboard
public void fine(String msg)
Link copied to clipboard
public void finer(String msg)
Link copied to clipboard
public void finest(String msg)
Link copied to clipboard
public static Logger getAnonymousLogger()
Link copied to clipboard
public Filter getFilter()
Link copied to clipboard
public final static Logger getGlobal()
Link copied to clipboard
Link copied to clipboard
public Level getLevel()
Link copied to clipboard
public static Logger getLogger(String name)
Link copied to clipboard
public String getName()
Link copied to clipboard
public Logger getParent()
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
public boolean getUseParentHandlers()
Link copied to clipboard
public void info(String msg)
Link copied to clipboard
public boolean isLoggable(Level level)
Link copied to clipboard
public void log(LogRecord logRecord)
Link copied to clipboard
public void logp(Level level, String sourceClass, String sourceMethod, String msg)
Link copied to clipboard
public void logrb(Level level, String sourceClass, String sourceMethod, String bundleName, String msg)
Link copied to clipboard
public void removeHandler(Handler handler)
Link copied to clipboard
public void setFilter(Filter newFilter)
Link copied to clipboard
public void setLevel(Level newLevel)
Link copied to clipboard
public void setParent(Logger parent)
Link copied to clipboard
public void setResourceBundle(ResourceBundle bundle)
Link copied to clipboard
public void setUseParentHandlers(boolean useParentHandlers)
Link copied to clipboard
public void severe(String msg)
Link copied to clipboard
public void throwing(String sourceClass, String sourceMethod, Throwable thrown)
Link copied to clipboard
public void warning(String msg)