Modifier and Type | Class and Description |
---|---|
static class |
Logging.LoggingFacade
Simplifies logging by providing façade methods similar to
Debugger |
Modifier and Type | Method and Description |
---|---|
static void |
addHandler(Handler handler) |
static void |
config(String msg) |
static void |
config(java.util.function.Supplier<String> msgSupplier) |
static void |
entering(String sourceClass,
String sourceMethod) |
static void |
entering(String sourceClass,
String sourceMethod,
Object param1) |
static void |
entering(String sourceClass,
String sourceMethod,
Object[] params) |
static void |
exiting(String sourceClass,
String sourceMethod) |
static void |
exiting(String sourceClass,
String sourceMethod,
Object result) |
static void |
fine(String msg) |
static void |
fine(java.util.function.Supplier<String> msgSupplier) |
static void |
finer(String msg) |
static void |
finer(java.util.function.Supplier<String> msgSupplier) |
static void |
finest(String msg) |
static void |
finest(java.util.function.Supplier<String> msgSupplier) |
static Filter |
getFilter() |
static Handler[] |
getHandlers() |
static Level |
getLevel() |
static Logger |
getLogger()
Returns the current
Logger in use by the plugin calling this
method |
static String |
getName() |
static Logger |
getParent() |
static ResourceBundle |
getResourceBundle() |
static String |
getResourceBundleName() |
static boolean |
getUseParentHandlers() |
static void |
info(String msg) |
static void |
info(java.util.function.Supplier<String> msgSupplier) |
static boolean |
isLoggable(Level level) |
static void |
log(Level level,
String msg) |
static void |
log(Level level,
String msg,
Object param1) |
static void |
log(Level level,
String msg,
Object[] params) |
static void |
log(Level level,
String msg,
Throwable thrown) |
static void |
log(Level level,
java.util.function.Supplier<String> msgSupplier) |
static void |
log(Level level,
Throwable thrown,
java.util.function.Supplier<String> msgSupplier) |
static void |
log(LogRecord record) |
static void |
logp(Level level,
String sourceClass,
String sourceMethod,
String msg) |
static void |
logp(Level level,
String sourceClass,
String sourceMethod,
String msg,
Object param1) |
static void |
logp(Level level,
String sourceClass,
String sourceMethod,
String msg,
Object[] params) |
static void |
logp(Level level,
String sourceClass,
String sourceMethod,
String msg,
Throwable thrown) |
static void |
logp(Level level,
String sourceClass,
String sourceMethod,
java.util.function.Supplier<String> msgSupplier) |
static void |
logp(Level level,
String sourceClass,
String sourceMethod,
Throwable thrown,
java.util.function.Supplier<String> msgSupplier) |
static void |
logrb(Level level,
String sourceClass,
String sourceMethod,
ResourceBundle bundle,
String msg,
Object... params) |
static void |
logrb(Level level,
String sourceClass,
String sourceMethod,
ResourceBundle bundle,
String msg,
Throwable thrown) |
static void |
logrb(Level level,
String sourceClass,
String sourceMethod,
String bundleName,
String msg) |
static void |
logrb(Level level,
String sourceClass,
String sourceMethod,
String bundleName,
String msg,
Object param1) |
static void |
logrb(Level level,
String sourceClass,
String sourceMethod,
String bundleName,
String msg,
Object[] params) |
static void |
logrb(Level level,
String sourceClass,
String sourceMethod,
String bundleName,
String msg,
Throwable thrown) |
static void |
removeHandler(Handler handler) |
static void |
setFilter(Filter newFilter) |
static void |
setLevel(Level newLevel) |
static void |
setParent(Logger parent) |
static void |
setResourceBundle(ResourceBundle bundle) |
static void |
setUseParentHandlers(boolean useParentHandlers) |
static void |
severe(String msg) |
static void |
severe(java.util.function.Supplier<String> msgSupplier) |
static Logging.LoggingFacade |
simple()
Returns a
Logging.LoggingFacade which allows for simpler methods of
printing via Logging |
static void |
throwing(String sourceClass,
String sourceMethod,
Throwable thrown) |
static void |
warning(String msg) |
static void |
warning(java.util.function.Supplier<String> msgSupplier) |
public static Logger getLogger()
Logger
in use by the plugin calling this
methodpublic static Logging.LoggingFacade simple()
Logging.LoggingFacade
which allows for simpler methods of
printing via Logging
Logger
implementationA Logging.LoggingFacade
with the plugin's loggerpublic static void addHandler(Handler handler) throws SecurityException
handler
- See original Logger
implementationSecurityException
Logger.addHandler(Handler)
public static void config(String msg)
msg
- See original Logger
implementationLogger.config(String)
public static void config(java.util.function.Supplier<String> msgSupplier)
msgSupplier
- See original Logger
implementationLogger.config(Supplier)
public static void entering(String sourceClass, String sourceMethod)
sourceClass
- See original Logger
implementationsourceMethod
- See original Logger
implementationLogger.entering(String, String)
public static void entering(String sourceClass, String sourceMethod, Object param1)
sourceClass
- See original Logger
implementationsourceMethod
- See original Logger
implementationparam1
- See original Logger
implementationLogger.entering(String, String, Object)
public static void entering(String sourceClass, String sourceMethod, Object[] params)
sourceClass
- See original Logger
implementationsourceMethod
- See original Logger
implementationparams
- See original Logger
implementationLogger.entering(String, String, Object[])
public static void exiting(String sourceClass, String sourceMethod)
sourceClass
- See original Logger
implementationsourceMethod
- See original Logger
implementationLogger.exiting(String, String)
public static void exiting(String sourceClass, String sourceMethod, Object result)
sourceClass
- See original Logger
implementationsourceMethod
- See original Logger
implementationresult
- See original Logger
implementationLogger.exiting(String, String, Object)
public static void fine(String msg)
msg
- See original Logger
implementationLogger.fine(String)
public static void fine(java.util.function.Supplier<String> msgSupplier)
msgSupplier
- See original Logger
implementationLogger.fine(Supplier)
public static void finer(String msg)
msg
- See original Logger
implementationLogger.finer(String)
public static void finer(java.util.function.Supplier<String> msgSupplier)
msgSupplier
- See original Logger
implementationLogger.finer(Supplier)
public static void finest(String msg)
msg
- See original Logger
implementationLogger.finest(String)
public static void finest(java.util.function.Supplier<String> msgSupplier)
msgSupplier
- See original Logger
implementationLogger.finest(Supplier)
public static Filter getFilter()
Logger
implementationLogger.getFilter()
public static Handler[] getHandlers()
Logger
implementationLogger.getHandlers()
public static Level getLevel()
Logger
implementationLogger.getLevel()
public static String getName()
Logger
implementationLogger.getName()
public static Logger getParent()
Logger
implementationLogger.getParent()
public static ResourceBundle getResourceBundle()
Logger
implementationLogger.getResourceBundle()
public static String getResourceBundleName()
Logger
implementationLogger.getResourceBundleName()
public static boolean getUseParentHandlers()
Logger
implementationLogger.getUseParentHandlers()
public static void info(String msg)
msg
- See original Logger
implementationLogger.info(String)
public static void info(java.util.function.Supplier<String> msgSupplier)
msgSupplier
- See original Logger
implementationLogger.info(Supplier)
public static boolean isLoggable(Level level)
level
- See original Logger
implementationLogger
implementationLogger.isLoggable(Level)
public static void log(LogRecord record)
record
- See original Logger
implementationLogger.log(LogRecord)
public static void log(Level level, String msg)
level
- See original Logger
implementationmsg
- See original Logger
implementationLogger.log(Level, String)
public static void log(Level level, java.util.function.Supplier<String> msgSupplier)
level
- See original Logger
implementationmsgSupplier
- See original Logger
implementationLogger.log(Level, Supplier)
public static void log(Level level, String msg, Object param1)
level
- See original Logger
implementationmsg
- See original Logger
implementationparam1
- See original Logger
implementationLogger.log(Level, String, Object)
public static void log(Level level, String msg, Object[] params)
level
- See original Logger
implementationmsg
- See original Logger
implementationparams
- See original Logger
implementationLogger.log(Level, String, Object[])
public static void log(Level level, String msg, Throwable thrown)
level
- See original Logger
implementationmsg
- See original Logger
implementationthrown
- See original Logger
implementationLogger.log(Level, String, Throwable)
public static void log(Level level, Throwable thrown, java.util.function.Supplier<String> msgSupplier)
level
- See original Logger
implementationthrown
- See original Logger
implementationmsgSupplier
- See original Logger
implementationLogger.log(Level, Throwable, Supplier)
public static void logp(Level level, String sourceClass, String sourceMethod, String msg)
level
- See original Logger
implementationsourceClass
- See original Logger
implementationsourceMethod
- See original Logger
implementationmsg
- See original Logger
implementationLogger.logp(Level, String, String, String)
public static void logp(Level level, String sourceClass, String sourceMethod, java.util.function.Supplier<String> msgSupplier)
level
- See original Logger
implementationsourceClass
- See original Logger
implementationsourceMethod
- See original Logger
implementationmsgSupplier
- See original Logger
implementationLogger.logp(Level, String, String, Supplier)
public static void logp(Level level, String sourceClass, String sourceMethod, String msg, Object param1)
public static void logp(Level level, String sourceClass, String sourceMethod, String msg, Object[] params)
level
- See original Logger
implementationsourceClass
- See original Logger
implementationsourceMethod
- See original Logger
implementationmsg
- See original Logger
implementationparams
- See original Logger
implementationLogger.logp(Level, String, String, String, Object[])
public static void logp(Level level, String sourceClass, String sourceMethod, String msg, Throwable thrown)
level
- See original Logger
implementationsourceClass
- See original Logger
implementationsourceMethod
- See original Logger
implementationmsg
- See original Logger
implementationthrown
- See original Logger
implementationLogger.logp(Level, String, String, String, Throwable)
public static void logp(Level level, String sourceClass, String sourceMethod, Throwable thrown, java.util.function.Supplier<String> msgSupplier)
level
- See original Logger
implementationsourceClass
- See original Logger
implementationsourceMethod
- See original Logger
implementationthrown
- See original Logger
implementationmsgSupplier
- See original Logger
implementationLogger.logp(Level, String, String, Throwable, Supplier)
public static void logrb(Level level, String sourceClass, String sourceMethod, String bundleName, String msg)
level
- See original Logger
implementationsourceClass
- See original Logger
implementationsourceMethod
- See original Logger
implementationbundleName
- See original Logger
implementationmsg
- See original Logger
implementationLogger.logrb(Level, String, String, String, String)
public static void logrb(Level level, String sourceClass, String sourceMethod, ResourceBundle bundle, String msg, Object... params)
level
- See original Logger
implementationsourceClass
- See original Logger
implementationsourceMethod
- See original Logger
implementationbundle
- See original Logger
implementationmsg
- See original Logger
implementationparams
- See original Logger
implementationLogger.logrb(Level, String, String, ResourceBundle, String, Object...)
public static void logrb(Level level, String sourceClass, String sourceMethod, ResourceBundle bundle, String msg, Throwable thrown)
level
- See original Logger
implementationsourceClass
- See original Logger
implementationsourceMethod
- See original Logger
implementationbundle
- See original Logger
implementationmsg
- See original Logger
implementationthrown
- See original Logger
implementationLogger.logrb(Level, String, String, ResourceBundle, String, Throwable)
public static void logrb(Level level, String sourceClass, String sourceMethod, String bundleName, String msg, Object param1)
level
- See original Logger
implementationsourceClass
- See original Logger
implementationsourceMethod
- See original Logger
implementationbundleName
- See original Logger
implementationmsg
- See original Logger
implementationparam1
- See original Logger
implementationLogger.logrb(Level, String, String, String, String, Object)
public static void logrb(Level level, String sourceClass, String sourceMethod, String bundleName, String msg, Object[] params)
level
- See original Logger
implementationsourceClass
- See original Logger
implementationsourceMethod
- See original Logger
implementationbundleName
- See original Logger
implementationmsg
- See original Logger
implementationparams
- See original Logger
implementationLogger.logrb(Level, String, String, String, String, Object[])
public static void logrb(Level level, String sourceClass, String sourceMethod, String bundleName, String msg, Throwable thrown)
level
- See original Logger
implementationsourceClass
- See original Logger
implementationsourceMethod
- See original Logger
implementationbundleName
- See original Logger
implementationmsg
- See original Logger
implementationthrown
- See original Logger
implementationLogger.logrb(Level, String, String, String, String, Throwable)
public static void removeHandler(Handler handler) throws SecurityException
handler
- See original Logger
implementationSecurityException
Logger.removeHandler(Handler)
public static void setFilter(Filter newFilter) throws SecurityException
newFilter
- See original Logger
implementationSecurityException
Logger.setFilter(Filter)
public static void setLevel(Level newLevel) throws SecurityException
newLevel
- See original Logger
implementationSecurityException
Logger.setLevel(Level)
public static void setParent(Logger parent)
parent
- See original Logger
implementationLogger.setParent(Logger)
public static void setResourceBundle(ResourceBundle bundle)
bundle
- See original Logger
implementationLogger.setResourceBundle(ResourceBundle)
public static void setUseParentHandlers(boolean useParentHandlers)
useParentHandlers
- See original Logger
implementationLogger.setUseParentHandlers(boolean)
public static void severe(String msg)
msg
- See original Logger
implementationLogger.severe(String)
public static void severe(java.util.function.Supplier<String> msgSupplier)
msgSupplier
- See original Logger
implementationLogger.severe(Supplier)
public static void throwing(String sourceClass, String sourceMethod, Throwable thrown)
sourceClass
- See original Logger
implementationsourceMethod
- See original Logger
implementationthrown
- See original Logger
implementationLogger.throwing(String, String, Throwable)
public static void warning(String msg)
msg
- See original Logger
implementationLogger.warning(String)
public static void warning(java.util.function.Supplier<String> msgSupplier)
msgSupplier
- See original Logger
implementationLogger.warning(Supplier)
Copyright © 2015. All rights reserved.