Java java.util.logging Logger fields, constructors, methods, implement or subclass

Example usage for Java java.util.logging Logger fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for java.util.logging Logger.

The text is from its open source code.

Subclass

java.util.logging.Logger has subclasses.
Click this link to see all its subclasses.

Field

ConfigurationDataconfig
StringGLOBAL_LOGGER_NAME
GLOBAL_LOGGER_NAME is a name for the global logger.
Loggerglobal
The "global" Logger object is provided as a convenience to developers who are making casual use of the Logging package.

Constructor

Logger(String name, String resourceBundleName)
Protected method to construct a logger for a named subsystem.
Logger

Method

voidaddHandler(Handler handler)
Add a log Handler to receive logging messages.
voidentering(String sourceClass, String sourceMethod, Object param1)
Log a method entry, with one parameter.
voidentering(String sourceClass, String sourceMethod, Object params[])
Log a method entry, with an array of parameters.
voidentering(String sourceClass, String sourceMethod)
Log a method entry.
voidexiting(String sourceClass, String sourceMethod, Object result)
Log a method return, with result object.
voidfine(String msg)
Log a FINE message.
voidfine(Supplier msgSupplier)
Log a FINE message, which is only to be constructed if the logging level is such that the message will actually be logged.
voidfiner(String msg)
Log a FINER message.
voidfiner(Supplier msgSupplier)
Log a FINER message, which is only to be constructed if the logging level is such that the message will actually be logged.
voidfinest(String msg)
Log a FINEST message.
voidfinest(Supplier msgSupplier)
Log a FINEST message, which is only to be constructed if the logging level is such that the message will actually be logged.
LoggergetAnonymousLogger()
Create an anonymous Logger.
ClassgetClass()
Returns the runtime class of this Object .
FiltergetFilter()
Get the current filter for this Logger.
LoggergetGlobal()
Return global logger object with the name Logger.GLOBAL_LOGGER_NAME.
Handler[]getHandlers()
Get the Handlers associated with this logger.
LevelgetLevel()
Get the log Level that has been specified for this Logger.
LoggergetLogger(String name)
Find or create a logger for a named subsystem.
StringgetName()
Get the name for this logger.
LoggergetParent()
Return the parent for this Logger.
ResourceBundlegetResourceBundle()
Retrieve the localization resource bundle for this logger.
StringgetResourceBundleName()
Retrieve the localization resource bundle name for this logger.
booleangetUseParentHandlers()
Discover whether or not this logger is sending its output to its parent logger.
voidinfo(String msg)
Log an INFO message.
voidinfo(Supplier msgSupplier)
Log a INFO message, which is only to be constructed if the logging level is such that the message will actually be logged.
booleanisLoggable(Level level)
Check if a message of the given level would actually be logged by this logger.
voidlog(Level level, String msg)
Log a message, with no arguments.
voidlog(Level level, Supplier msgSupplier)
Log a message, which is only to be constructed if the logging level is such that the message will actually be logged.
voidlog(Level level, String msg, Object param1)
Log a message, with one object parameter.
voidlog(Level level, String msg, Object params[])
Log a message, with an array of object arguments.
voidlog(Level level, String msg, Throwable thrown)
Log a message, with associated Throwable information.
voidlog(Level level, Throwable thrown, Supplier msgSupplier)
Log a lazily constructed message, with associated Throwable information.
voidlog(LogRecord record)
Log a LogRecord.
voidlogp(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.
voidlogp(Level level, String sourceClass, String sourceMethod, String msg, Object params[])
Log a message, specifying source class and method, with an array of object arguments.
voidlogp(Level level, String sourceClass, String sourceMethod, String msg, Throwable thrown)
Log a message, specifying source class and method, with associated Throwable information.
voidlogp(Level level, String sourceClass, String sourceMethod, Throwable thrown, Supplier msgSupplier)
Log a lazily constructed message, specifying source class and method, with associated Throwable information.
voidlogp(Level level, String sourceClass, String sourceMethod, String msg)
Log a message, specifying source class and method, with no arguments.
voidlogp(Level level, String sourceClass, String sourceMethod, Supplier msgSupplier)
Log a lazily constructed message, specifying source class and method, with no arguments.
voidremoveHandler(Handler handler)
Remove a log Handler.
voidsetFilter(Filter newFilter)
Set a filter to control output on this Logger.
voidsetLevel(Level newLevel)
Set the log level specifying which message levels will be logged by this logger.
voidsetUseParentHandlers(boolean useParentHandlers)
Specify whether or not this logger should send its output to its parent Logger.
voidsevere(String msg)
Log a SEVERE message.
voidsevere(Supplier msgSupplier)
Log a SEVERE message, which is only to be constructed if the logging level is such that the message will actually be logged.
voidthrowing(String sourceClass, String sourceMethod, Throwable thrown)
Log throwing an exception.
voidwarning(String msg)
Log a WARNING message.
voidwarning(Supplier msgSupplier)
Log a WARNING message, which is only to be constructed if the logging level is such that the message will actually be logged.