net.sf.jaxme.logging
Class LoggerImpl

java.lang.Object
  extended bynet.sf.jaxme.logging.LoggerImpl
All Implemented Interfaces:
Logger
Direct Known Subclasses:
PrintStreamLogger, PrintWriterLogger

public class LoggerImpl
extends java.lang.Object
implements Logger

Base implementation of a Logger.

Author:
Jochen Wiedmann

Constructor Summary
LoggerImpl(java.lang.String pCName)
           
 
Method Summary
 void entering(java.lang.String mName)
          Logs the message that a method is entered.
 void entering(java.lang.String mName, java.lang.Object pDetails)
          Logs the message that a method is entered.
 void entering(java.lang.String mName, java.lang.Object[] pDetails)
          Logs the message that a method is entered.
 void error(java.lang.String mName, java.lang.String pMsg)
          Logs the given message with error level.
 void error(java.lang.String mName, java.lang.String pMsg, java.lang.Object pDetails)
          Logs the given message with error level.
 void error(java.lang.String mName, java.lang.String pMsg, java.lang.Object[] pDetails)
          Logs the given message with error level.
 void exiting(java.lang.String mName)
          Logs the message that a method is exiting.
 void exiting(java.lang.String mName, java.lang.Object pDetails)
          Logs the message that a method is exiting.
 void exiting(java.lang.String mName, java.lang.Object[] pDetails)
          Logs the message that a method is exiting.
 void fine(java.lang.String mName, java.lang.String pMsg)
          Logs the given message with fine level.
 void fine(java.lang.String mName, java.lang.String pMsg, java.lang.Object pDetails)
          Logs the given message with fine level.
 void fine(java.lang.String mName, java.lang.String pMsg, java.lang.Object[] pDetails)
          Logs the given message with fine level.
 void finer(java.lang.String mName, java.lang.String pMsg)
          Logs the given message with finer level.
 void finer(java.lang.String mName, java.lang.String pMsg, java.lang.Object pDetails)
          Logs the given message with finer level.
 void finer(java.lang.String mName, java.lang.String pMsg, java.lang.Object[] pDetails)
          Logs the given message with finer level.
 void finest(java.lang.String mName, java.lang.String pMsg)
          Logs the given message with finest level.
 void finest(java.lang.String mName, java.lang.String pMsg, java.lang.Object pDetails)
          Logs the given message with finest level.
 void finest(java.lang.String mName, java.lang.String pMsg, java.lang.Object[] pDetails)
          Logs the given message with finest level.
 void info(java.lang.String mName, java.lang.String pMsg)
          Logs the given message with info level.
 void info(java.lang.String mName, java.lang.String pMsg, java.lang.Object pDetails)
          Logs the given message with info level.
 void info(java.lang.String mName, java.lang.String pMsg, java.lang.Object[] pDetails)
          Logs the given message with info level.
 boolean isErrorEnabled()
          Returns whether error logging is enabled.
 boolean isFineEnabled()
          Returns whether fine logging is enabled.
 boolean isFinerEnabled()
          Returns whether fine logging is enabled.
 boolean isFinestEnabled()
          Returns whether finest logging is enabled.
 boolean isInfoEnabled()
          Returns whether info logging is enabled.
 boolean isLoggingThread()
           
 boolean isLoggingTime()
           
 boolean isWarnEnabled()
          Returns whether warning logging is enabled.
protected  void log(java.lang.String pMsg)
           
protected  void log(java.lang.String pLevel, java.lang.String pCName, java.lang.String pMName, java.lang.Object[] pDetails)
           
protected  void log(java.lang.String pLevel, java.lang.String pCName, java.lang.String pMName, java.lang.String pMsg)
           
protected  void log(java.lang.String pLevel, java.lang.String pCName, java.lang.String pMName, java.lang.String pMsg, java.lang.Object[] pDetails)
           
 void setLoggingThread(boolean pLoggingThread)
           
 void setLoggingTime(boolean pLoggingTime)
           
 void throwing(java.lang.String mName, java.lang.Throwable pThrowable)
          Logs the given Throwable.
 void warn(java.lang.String mName, java.lang.String pMsg)
          Logs the given message with warning level.
 void warn(java.lang.String mName, java.lang.String pMsg, java.lang.Object pDetails)
          Logs the given message with warning level.
 void warn(java.lang.String mName, java.lang.String pMsg, java.lang.Object[] pDetails)
          Logs the given message with warning level.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoggerImpl

public LoggerImpl(java.lang.String pCName)
Method Detail

isLoggingTime

public boolean isLoggingTime()

isLoggingThread

public boolean isLoggingThread()

setLoggingTime

public void setLoggingTime(boolean pLoggingTime)

setLoggingThread

public void setLoggingThread(boolean pLoggingThread)

log

protected void log(java.lang.String pMsg)

log

protected void log(java.lang.String pLevel,
                   java.lang.String pCName,
                   java.lang.String pMName,
                   java.lang.String pMsg)

log

protected void log(java.lang.String pLevel,
                   java.lang.String pCName,
                   java.lang.String pMName,
                   java.lang.String pMsg,
                   java.lang.Object[] pDetails)

log

protected void log(java.lang.String pLevel,
                   java.lang.String pCName,
                   java.lang.String pMName,
                   java.lang.Object[] pDetails)

isFinestEnabled

public boolean isFinestEnabled()
Description copied from interface: Logger

Returns whether finest logging is enabled.

Specified by:
isFinestEnabled in interface Logger

isFinerEnabled

public boolean isFinerEnabled()
Description copied from interface: Logger

Returns whether fine logging is enabled.

Specified by:
isFinerEnabled in interface Logger

isFineEnabled

public boolean isFineEnabled()
Description copied from interface: Logger

Returns whether fine logging is enabled.

Specified by:
isFineEnabled in interface Logger

isInfoEnabled

public boolean isInfoEnabled()
Description copied from interface: Logger

Returns whether info logging is enabled.

Specified by:
isInfoEnabled in interface Logger

isWarnEnabled

public boolean isWarnEnabled()
Description copied from interface: Logger

Returns whether warning logging is enabled.

Specified by:
isWarnEnabled in interface Logger

isErrorEnabled

public boolean isErrorEnabled()
Description copied from interface: Logger

Returns whether error logging is enabled.

Specified by:
isErrorEnabled in interface Logger

finest

public void finest(java.lang.String mName,
                   java.lang.String pMsg,
                   java.lang.Object[] pDetails)
Description copied from interface: Logger

Logs the given message with finest level.

Specified by:
finest in interface Logger

finest

public void finest(java.lang.String mName,
                   java.lang.String pMsg)
Description copied from interface: Logger

Logs the given message with finest level.

Specified by:
finest in interface Logger

finest

public void finest(java.lang.String mName,
                   java.lang.String pMsg,
                   java.lang.Object pDetails)
Description copied from interface: Logger

Logs the given message with finest level.

Specified by:
finest in interface Logger

finer

public void finer(java.lang.String mName,
                  java.lang.String pMsg,
                  java.lang.Object[] pDetails)
Description copied from interface: Logger

Logs the given message with finer level.

Specified by:
finer in interface Logger

finer

public void finer(java.lang.String mName,
                  java.lang.String pMsg)
Description copied from interface: Logger

Logs the given message with finer level.

Specified by:
finer in interface Logger

finer

public void finer(java.lang.String mName,
                  java.lang.String pMsg,
                  java.lang.Object pDetails)
Description copied from interface: Logger

Logs the given message with finer level.

Specified by:
finer in interface Logger

fine

public void fine(java.lang.String mName,
                 java.lang.String pMsg,
                 java.lang.Object[] pDetails)
Description copied from interface: Logger

Logs the given message with fine level.

Specified by:
fine in interface Logger

fine

public void fine(java.lang.String mName,
                 java.lang.String pMsg)
Description copied from interface: Logger

Logs the given message with fine level.

Specified by:
fine in interface Logger

fine

public void fine(java.lang.String mName,
                 java.lang.String pMsg,
                 java.lang.Object pDetails)
Description copied from interface: Logger

Logs the given message with fine level.

Specified by:
fine in interface Logger

info

public void info(java.lang.String mName,
                 java.lang.String pMsg,
                 java.lang.Object[] pDetails)
Description copied from interface: Logger

Logs the given message with info level.

Specified by:
info in interface Logger

info

public void info(java.lang.String mName,
                 java.lang.String pMsg)
Description copied from interface: Logger

Logs the given message with info level.

Specified by:
info in interface Logger

info

public void info(java.lang.String mName,
                 java.lang.String pMsg,
                 java.lang.Object pDetails)
Description copied from interface: Logger

Logs the given message with info level.

Specified by:
info in interface Logger

warn

public void warn(java.lang.String mName,
                 java.lang.String pMsg,
                 java.lang.Object[] pDetails)
Description copied from interface: Logger

Logs the given message with warning level.

Specified by:
warn in interface Logger

warn

public void warn(java.lang.String mName,
                 java.lang.String pMsg)
Description copied from interface: Logger

Logs the given message with warning level.

Specified by:
warn in interface Logger

warn

public void warn(java.lang.String mName,
                 java.lang.String pMsg,
                 java.lang.Object pDetails)
Description copied from interface: Logger

Logs the given message with warning level.

Specified by:
warn in interface Logger

error

public void error(java.lang.String mName,
                  java.lang.String pMsg,
                  java.lang.Object[] pDetails)
Description copied from interface: Logger

Logs the given message with error level.

Specified by:
error in interface Logger

error

public void error(java.lang.String mName,
                  java.lang.String pMsg)
Description copied from interface: Logger

Logs the given message with error level.

Specified by:
error in interface Logger

error

public void error(java.lang.String mName,
                  java.lang.String pMsg,
                  java.lang.Object pDetails)
Description copied from interface: Logger

Logs the given message with error level.

Specified by:
error in interface Logger

entering

public void entering(java.lang.String mName,
                     java.lang.Object[] pDetails)
Description copied from interface: Logger

Logs the message that a method is entered.

Specified by:
entering in interface Logger

entering

public void entering(java.lang.String mName)
Description copied from interface: Logger

Logs the message that a method is entered.

Specified by:
entering in interface Logger

entering

public void entering(java.lang.String mName,
                     java.lang.Object pDetails)
Description copied from interface: Logger

Logs the message that a method is entered.

Specified by:
entering in interface Logger

exiting

public void exiting(java.lang.String mName,
                    java.lang.Object[] pDetails)
Description copied from interface: Logger

Logs the message that a method is exiting.

Specified by:
exiting in interface Logger

exiting

public void exiting(java.lang.String mName)
Description copied from interface: Logger

Logs the message that a method is exiting.

Specified by:
exiting in interface Logger

exiting

public void exiting(java.lang.String mName,
                    java.lang.Object pDetails)
Description copied from interface: Logger

Logs the message that a method is exiting.

Specified by:
exiting in interface Logger

throwing

public void throwing(java.lang.String mName,
                     java.lang.Throwable pThrowable)
Description copied from interface: Logger

Logs the given Throwable.

Specified by:
throwing in interface Logger