API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.util.logging. Logger View Source
Author(s)
Since
1.4
Version
1.49, 05/08/06
Serial
Hierarchy
 Object
      Logger
Implements
Subclasses
Description
public class Logger
  A Logger object is used to log messages for a specific system or application component.
See also:   
Constructors
private Logger (String name)
protected Logger (String name, String resourceBundleName)
  Protected method to construct a logger for a named subsystem.
Methods
Hide/Show inherited methods
publicsynchronized void addHandler (Handler handler) throws SecurityException
  Add a log Handler to receive logging messages.
public void config (String msg)
  Log a CONFIG message.
public void entering (String sourceClass, String sourceMethod)
  Log a method entry.
public void entering (String sourceClass, String sourceMethod, Object param1)
  Log a method entry, with one parameter.
public void entering (String sourceClass, String sourceMethod, Object params)
  Log a method entry, with an array of parameters.
public void exiting (String sourceClass, String sourceMethod)
  Log a method return.
public void exiting (String sourceClass, String sourceMethod, Object result)
  Log a method return, with result object.
public void fine (String msg)
  Log a FINE message.
public void finer (String msg)
  Log a FINER message.
public void finest (String msg)
  Log a FINEST message.
publicstaticsynchronized Logger getAnonymousLogger ()
  Create an anonymous Logger.
publicstaticsynchronized Logger getAnonymousLogger (String resourceBundleName)
  Create an anonymous Logger.
public Filter getFilter ()
  Get the current filter for this Logger.
publicsynchronized Handler getHandlers ()
  Get the Handlers associated with this logger.
public Level getLevel ()
  Get the log Level that has been specified for this Logger.
publicstaticsynchronized Logger getLogger (String name)
  Find or create a logger for a named subsystem.
publicstaticsynchronized Logger getLogger (String name, String resourceBundleName)
  Find or create a logger for a named subsystem.
public String getName ()
  Get the name for this logger.
public Logger getParent ()
  Return the parent for this Logger.
public ResourceBundle getResourceBundle ()
  Retrieve the localization resource bundle for this logger for the current default locale.
public String getResourceBundleName ()
  Retrieve the localization resource bundle name for this logger.
publicsynchronized boolean getUseParentHandlers ()
  Discover whether or not this logger is sending its output to its parent logger.
public void info (String msg)
  Log an INFO message.
public boolean isLoggable (Level level)
  Check if a message of the given level would actually be logged by this logger.
public void log (Level level, String msg)
  Log a message, with no arguments.
public void log (Level level, String msg, Object param1)
  Log a message, with one object parameter.
public void log (Level level, String msg, Object params)
  Log a message, with an array of object arguments.
public void log (Level level, String msg, Throwable thrown)
  Log a message, with associated Throwable information.
public void log (LogRecord record)
  Log a LogRecord.
public void logp (Level level, String sourceClass, String sourceMethod, String msg)
  Log a message, specifying source class and method, with no arguments.
public 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.
public 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.
public void logp (Level level, String sourceClass, String sourceMethod, String msg, Throwable thrown)
  Log a message, specifying source class and method, with associated Throwable information.
public void logrb (Level level, String sourceClass, String sourceMethod, String bundleName, String msg)
  Log a message, specifying source class, method, and resource bundle name with no arguments.
public void logrb (Level level, String sourceClass, String sourceMethod, String bundleName, String msg, Object param1)
  Log a message, specifying source class, method, and resource bundle name, with a single object parameter to the log message.
public void logrb (Level level, String sourceClass, String sourceMethod, String bundleName, String msg, Object params)
  Log a message, specifying source class, method, and resource bundle name, with an array of object arguments.
public void logrb (Level level, String sourceClass, String sourceMethod, String bundleName, String msg, Throwable thrown)
  Log a message, specifying source class, method, and resource bundle name, with associated Throwable information.
publicsynchronized void removeHandler (Handler handler) throws SecurityException
  Remove a log Handler.
public void setFilter (Filter newFilter) throws SecurityException
  Set a filter to control output on this Logger.
public void setLevel (Level newLevel) throws SecurityException
  Set the log level specifying which message levels will be logged by this logger.
pack-private void setLogManager (LogManager manager)
public void setParent (Logger parent)
  Set the parent for this Logger.
publicsynchronized void setUseParentHandlers (boolean useParentHandlers)
  Specify whether or not this logger should send its output to it's parent Logger.
public void severe (String msg)
  Log a SEVERE message.
public void throwing (String sourceClass, String sourceMethod, Throwable thrown)
  Log throwing an exception.
public void warning (String msg)
  Log a WARNING message.
Fields
Hide/Show inherited fields
@Deprecated
publicfinalstatic Logger global
  The "global" Logger object is provided as a convenience to developers who are making casual use of the Logging package.
publicfinalstatic String GLOBAL_LOGGER_NAME = "global"
  GLOBAL_LOGGER_NAME is a name for the global logger.
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar