Example usage for Java java.util.logging Logger fields, constructors, methods, implement or subclass
The text is from its open source code.
ConfigurationData | config |
String | GLOBAL_LOGGER_NAME GLOBAL_LOGGER_NAME is a name for the global logger. |
Logger | global The "global" Logger object is provided as a convenience to developers who are making casual use of the Logging package. |
Logger(String name, String resourceBundleName) Protected method to construct a logger for a named subsystem. | |
Logger |
void | addHandler(Handler handler) Add a log Handler to receive logging messages. |
void | entering(String sourceClass, String sourceMethod, Object param1) Log a method entry, with one parameter. |
void | entering(String sourceClass, String sourceMethod, Object params[]) Log a method entry, with an array of parameters. |
void | entering(String sourceClass, String sourceMethod) Log a method entry. |
void | exiting(String sourceClass, String sourceMethod, Object result) Log a method return, with result object. |
void | fine(String msg) Log a FINE message. |
void | fine(Supplier Log a FINE message, which is only to be constructed if the logging level is such that the message will actually be logged. |
void | finer(String msg) Log a FINER message. |
void | finer(Supplier Log a FINER message, which is only to be constructed if the logging level is such that the message will actually be logged. |
void | finest(String msg) Log a FINEST message. |
void | finest(Supplier Log a FINEST message, which is only to be constructed if the logging level is such that the message will actually be logged. |
Logger | getAnonymousLogger() Create an anonymous Logger. |
Class> | getClass() Returns the runtime class of this Object . |
Filter | getFilter() Get the current filter for this Logger. |
Logger | getGlobal() Return global logger object with the name Logger.GLOBAL_LOGGER_NAME. |
Handler[] | getHandlers() Get the Handlers associated with this logger. |
Level | getLevel() Get the log Level that has been specified for this Logger. |
Logger | getLogger(String name) Find or create a logger for a named subsystem. |
String | getName() Get the name for this logger. |
Logger | getParent() Return the parent for this Logger. |
ResourceBundle | getResourceBundle() Retrieve the localization resource bundle for this logger. |
String | getResourceBundleName() Retrieve the localization resource bundle name for this logger. |
boolean | getUseParentHandlers() Discover whether or not this logger is sending its output to its parent logger. |
void | info(String msg) Log an INFO message. |
void | info(Supplier Log a INFO message, which is only to be constructed if the logging level is such that the message will actually be logged. |
boolean | isLoggable(Level level) Check if a message of the given level would actually be logged by this logger. |
void | log(Level level, String msg) Log a message, with no arguments. |
void | log(Level level, Supplier Log a message, which is only to be constructed if the logging level is such that the message will actually be logged. |
void | log(Level level, String msg, Object param1) Log a message, with one object parameter. |
void | log(Level level, String msg, Object params[]) Log a message, with an array of object arguments. |
void | log(Level level, String msg, Throwable thrown) Log a message, with associated Throwable information. |
void | log(Level level, Throwable thrown, Supplier Log a lazily constructed message, with associated Throwable information. |
void | log(LogRecord record) Log a LogRecord. |
void | logp(Level level, String sourceClass, String sourceMethod, String msg, Object param1) Log a message, specifying source class and method, with a single object parameter to the log message. |
void | logp(Level level, String sourceClass, String sourceMethod, String msg, Object params[]) Log a message, specifying source class and method, with an array of object arguments. |
void | logp(Level level, String sourceClass, String sourceMethod, String msg, Throwable thrown) Log a message, specifying source class and method, with associated Throwable information. |
void | logp(Level level, String sourceClass, String sourceMethod, Throwable thrown, Supplier Log a lazily constructed message, specifying source class and method, with associated Throwable information. |
void | logp(Level level, String sourceClass, String sourceMethod, String msg) Log a message, specifying source class and method, with no arguments. |
void | logp(Level level, String sourceClass, String sourceMethod, Supplier Log a lazily constructed message, specifying source class and method, with no arguments. |
void | removeHandler(Handler handler) Remove a log Handler. |
void | setFilter(Filter newFilter) Set a filter to control output on this Logger. |
void | setLevel(Level newLevel) Set the log level specifying which message levels will be logged by this logger. |
void | setUseParentHandlers(boolean useParentHandlers) Specify whether or not this logger should send its output to its parent Logger. |
void | severe(String msg) Log a SEVERE message. |
void | severe(Supplier Log a SEVERE message, which is only to be constructed if the logging level is such that the message will actually be logged. |
void | throwing(String sourceClass, String sourceMethod, Throwable thrown) Log throwing an exception. |
void | warning(String msg) Log a WARNING message. |
void | warning(Supplier Log a WARNING message, which is only to be constructed if the logging level is such that the message will actually be logged. |