Class ExtendedLogger

java.lang.Object
org.glassfish.jersey.internal.util.ExtendedLogger

public final class ExtendedLogger extends Object
Logger extension with additional logging utility & convenience methods.
Author:
Marek Potociar
  • Constructor Details

    • ExtendedLogger

      public ExtendedLogger(Logger logger, Level debugLevel)
      Create new logger extension.
      Parameters:
      logger - wrapped logger.
      debugLevel - debug message logging level.
  • Method Details

    • isDebugLoggable

      public boolean isDebugLoggable()
      Check if the debug level is loggable.
      Returns:
      true if the debug level is loggable, false otherwise.
    • getDebugLevel

      public Level getDebugLevel()
      Get the configured debug level.
      Returns:
      configured debug level.
    • debugLog

      public void debugLog(String message)
      Log a debug message using the configured debug level. This method appends thread name information to the end of the logged message.
      Parameters:
      message - debug message.
    • debugLog

      public void debugLog(String messageTemplate, Object... args)
      Log a debug message using the configured debug level. This method appends thread name information to the end of the logged message.
      Parameters:
      messageTemplate - debug message template.
      args - message template parameters.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • warning

      public void warning(String msg)
    • throwing

      public void throwing(String sourceClass, String sourceMethod, Throwable thrown)
    • severe

      public void severe(String msg)
    • setUseParentHandlers

      public void setUseParentHandlers(boolean useParentHandlers)
    • setParent

      public void setParent(Logger parent)
    • setLevel

      public void setLevel(Level newLevel) throws SecurityException
      Throws:
      SecurityException
    • setFilter

      public void setFilter(Filter newFilter) throws SecurityException
      Throws:
      SecurityException
    • removeHandler

      public void removeHandler(Handler handler) throws SecurityException
      Throws:
      SecurityException
    • logrb

      public void logrb(Level level, String sourceClass, String sourceMethod, String bundleName, String msg, Throwable thrown)
    • logrb

      public void logrb(Level level, String sourceClass, String sourceMethod, String bundleName, String msg, Object[] params)
    • logrb

      public void logrb(Level level, String sourceClass, String sourceMethod, String bundleName, String msg, Object param1)
    • logrb

      public void logrb(Level level, String sourceClass, String sourceMethod, String bundleName, String msg)
    • logp

      public void logp(Level level, String sourceClass, String sourceMethod, String msg, Throwable thrown)
    • logp

      public void logp(Level level, String sourceClass, String sourceMethod, String msg, Object[] params)
    • logp

      public void logp(Level level, String sourceClass, String sourceMethod, String msg, Object param1)
    • logp

      public void logp(Level level, String sourceClass, String sourceMethod, String msg)
    • log

      public void log(Level level, String msg, Throwable thrown)
    • log

      public void log(Level level, String msg, Object[] params)
    • log

      public void log(Level level, String msg, Object param1)
    • log

      public void log(Level level, String msg)
    • log

      public void log(LogRecord record)
    • isLoggable

      public boolean isLoggable(Level level)
    • info

      public void info(String msg)
    • getUseParentHandlers

      public boolean getUseParentHandlers()
    • getResourceBundleName

      public String getResourceBundleName()
    • getResourceBundle

      public ResourceBundle getResourceBundle()
    • getParent

      public Logger getParent()
    • getName

      public String getName()
    • getLevel

      public Level getLevel()
    • getHandlers

      public Handler[] getHandlers()
    • getFilter

      public Filter getFilter()
    • finest

      public void finest(String msg)
    • finer

      public void finer(String msg)
    • fine

      public void fine(String msg)
    • exiting

      public void exiting(String sourceClass, String sourceMethod, Object result)
    • exiting

      public void exiting(String sourceClass, String sourceMethod)
    • entering

      public void entering(String sourceClass, String sourceMethod, Object[] params)
    • entering

      public void entering(String sourceClass, String sourceMethod, Object param1)
    • entering

      public void entering(String sourceClass, String sourceMethod)
    • config

      public void config(String msg)
    • addHandler

      public void addHandler(Handler handler) throws SecurityException
      Throws:
      SecurityException