org.apache.ws.jaxme.logging

Class Log4jLogger

Implemented Interfaces:
Logger

public class Log4jLogger
extends java.lang.Object
implements Logger

Author:
Jochen Wiedmann

Constructor Summary

Log4jLogger(String pCName)

Method Summary

void
entering(String pMethodName)
Logs the message that a method is entered.
void
entering(String pMethodName, Object pDetails)
Logs the message that a method is entered.
void
entering(String pMethodName, Object[] pDetails)
Logs the message that a method is entered.
void
error(String pMethodName, String pMsg)
Logs the given message with error level.
void
error(String pMethodName, String pMsg, Object pDetails)
Logs the given message with error level.
void
error(String pMethodName, String pMsg, Object[] pDetails)
Logs the given message with error level.
void
exiting(String pMethodName)
Logs the message that a method is exiting.
void
exiting(String pMethodName, Object pDetails)
Logs the message that a method is exiting.
void
exiting(String pMethodName, Object[] pDetails)
Logs the message that a method is exiting.
void
fine(String pMethodName, String pMsg)
Logs the given message with fine level.
void
fine(String pMethodName, String pMsg, Object pDetails)
Logs the given message with fine level.
void
fine(String pMethodName, String pMsg, Object[] pDetails)
Logs the given message with fine level.
void
finer(String pMethodName, String pMsg)
Logs the given message with finer level.
void
finer(String pMethodName, String pMsg, Object pDetails)
Logs the given message with finer level.
void
finer(String pMethodName, String pMsg, Object[] pDetails)
Logs the given message with finer level.
void
finest(String pMethodName, String pMsg)
Logs the given message with finest level.
void
finest(String pMethodName, String pMsg, Object pDetails)
Logs the given message with finest level.
void
finest(String pMethodName, String pMsg, Object[] pDetails)
Logs the given message with finest level.
protected String
format(String pMethodName, Object[] pDetails)
protected String
format(String pMethodName, String pMsg, Object[] pDetails)
void
info(String pMethodName, String pMsg)
Logs the given message with info level.
void
info(String pMethodName, String pMsg, Object pDetails)
Logs the given message with info level.
void
info(String pMethodName, String pMsg, 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
isWarnEnabled()
Returns whether warning logging is enabled.
void
throwing(String pMethodName, Throwable pThrowable)
Logs the given Throwable.
void
warn(String pMethodName, String pMsg)
Logs the given message with warning level.
void
warn(String pMethodName, String pMsg, Object pDetails)
Logs the given message with warning level.
void
warn(String pMethodName, String pMsg, Object[] pDetails)
Logs the given message with warning level.

Constructor Details

Log4jLogger

public Log4jLogger(String pCName)

Method Details

entering

public void entering(String pMethodName)
Logs the message that a method is entered.
Specified by:
entering in interface Logger

entering

public void entering(String pMethodName,
                     Object pDetails)
Logs the message that a method is entered.
Specified by:
entering in interface Logger

entering

public void entering(String pMethodName,
                     Object[] pDetails)
Logs the message that a method is entered.
Specified by:
entering in interface Logger

error

public void error(String pMethodName,
                  String pMsg)
Logs the given message with error level.
Specified by:
error in interface Logger

error

public void error(String pMethodName,
                  String pMsg,
                  Object pDetails)
Logs the given message with error level.
Specified by:
error in interface Logger

error

public void error(String pMethodName,
                  String pMsg,
                  Object[] pDetails)
Logs the given message with error level.
Specified by:
error in interface Logger

exiting

public void exiting(String pMethodName)
Logs the message that a method is exiting.
Specified by:
exiting in interface Logger

exiting

public void exiting(String pMethodName,
                    Object pDetails)
Logs the message that a method is exiting.
Specified by:
exiting in interface Logger

exiting

public void exiting(String pMethodName,
                    Object[] pDetails)
Logs the message that a method is exiting.
Specified by:
exiting in interface Logger

fine

public void fine(String pMethodName,
                 String pMsg)
Logs the given message with fine level.
Specified by:
fine in interface Logger

fine

public void fine(String pMethodName,
                 String pMsg,
                 Object pDetails)
Logs the given message with fine level.
Specified by:
fine in interface Logger

fine

public void fine(String pMethodName,
                 String pMsg,
                 Object[] pDetails)
Logs the given message with fine level.
Specified by:
fine in interface Logger

finer

public void finer(String pMethodName,
                  String pMsg)
Logs the given message with finer level.
Specified by:
finer in interface Logger

finer

public void finer(String pMethodName,
                  String pMsg,
                  Object pDetails)
Logs the given message with finer level.
Specified by:
finer in interface Logger

finer

public void finer(String pMethodName,
                  String pMsg,
                  Object[] pDetails)
Logs the given message with finer level.
Specified by:
finer in interface Logger

finest

public void finest(String pMethodName,
                   String pMsg)
Logs the given message with finest level.
Specified by:
finest in interface Logger

finest

public void finest(String pMethodName,
                   String pMsg,
                   Object pDetails)
Logs the given message with finest level.
Specified by:
finest in interface Logger

finest

public void finest(String pMethodName,
                   String pMsg,
                   Object[] pDetails)
Logs the given message with finest level.
Specified by:
finest in interface Logger

format

protected String format(String pMethodName,
                        Object[] pDetails)

format

protected String format(String pMethodName,
                        String pMsg,
                        Object[] pDetails)

info

public void info(String pMethodName,
                 String pMsg)
Logs the given message with info level.
Specified by:
info in interface Logger

info

public void info(String pMethodName,
                 String pMsg,
                 Object pDetails)
Logs the given message with info level.
Specified by:
info in interface Logger

info

public void info(String pMethodName,
                 String pMsg,
                 Object[] pDetails)
Logs the given message with info level.
Specified by:
info in interface Logger

isErrorEnabled

public boolean isErrorEnabled()
Returns whether error logging is enabled.
Specified by:
isErrorEnabled in interface Logger

isFineEnabled

public boolean isFineEnabled()
Returns whether fine logging is enabled.
Specified by:
isFineEnabled in interface Logger

isFinerEnabled

public boolean isFinerEnabled()
Returns whether fine logging is enabled.
Specified by:
isFinerEnabled in interface Logger

isFinestEnabled

public boolean isFinestEnabled()
Returns whether finest logging is enabled.
Specified by:
isFinestEnabled in interface Logger

isInfoEnabled

public boolean isInfoEnabled()
Returns whether info logging is enabled.
Specified by:
isInfoEnabled in interface Logger

isWarnEnabled

public boolean isWarnEnabled()
Returns whether warning logging is enabled.
Specified by:
isWarnEnabled in interface Logger

throwing

public void throwing(String pMethodName,
                     Throwable pThrowable)
Logs the given Throwable.
Specified by:
throwing in interface Logger

warn

public void warn(String pMethodName,
                 String pMsg)
Logs the given message with warning level.
Specified by:
warn in interface Logger

warn

public void warn(String pMethodName,
                 String pMsg,
                 Object pDetails)
Logs the given message with warning level.
Specified by:
warn in interface Logger

warn

public void warn(String pMethodName,
                 String pMsg,
                 Object[] pDetails)
Logs the given message with warning level.
Specified by:
warn in interface Logger