org.apache.ws.jaxme.logging

Class AntProjectLogger

Implemented Interfaces:
Logger

public class AntProjectLogger
extends java.lang.Object
implements Logger

A wrapper for the Ant logger.

Constructor Summary

AntProjectLogger(String pName, Task pTask)
Creates a new instance for the given task.

Method Summary

protected String
asString(Object[] pDetails)
void
entering(String mName)
Logs the message that a method is entered.
void
entering(String mName, Object pDetails)
Logs the message that a method is entered.
void
entering(String mName, Object[] pDetails)
Logs the message that a method is entered.
void
error(String mName, String pMsg)
Logs the given message with error level.
void
error(String mName, String pMsg, Object pDetails)
Logs the given message with error level.
void
error(String mName, String pMsg, Object[] pDetails)
Logs the given message with error level.
void
exiting(String mName)
Logs the message that a method is exiting.
void
exiting(String mName, Object pDetails)
Logs the message that a method is exiting.
void
exiting(String mName, Object[] pDetails)
Logs the message that a method is exiting.
void
fine(String mName, String pMsg)
Logs the given message with fine level.
void
fine(String mName, String pMsg, Object pDetails)
Logs the given message with fine level.
void
fine(String mName, String pMsg, Object[] pDetails)
Logs the given message with fine level.
void
finer(String mName, String pMsg)
Logs the given message with finer level.
void
finer(String mName, String pMsg, Object pDetails)
Logs the given message with finer level.
void
finer(String mName, String pMsg, Object[] pDetails)
Logs the given message with finer level.
void
finest(String mName, String pMsg)
Logs the given message with finest level.
void
finest(String mName, String pMsg, Object pDetails)
Logs the given message with finest level.
void
finest(String mName, String pMsg, Object[] pDetails)
Logs the given message with finest level.
void
info(String mName, String pMsg)
Logs the given message with info level.
void
info(String mName, String pMsg, Object pDetails)
Logs the given message with info level.
void
info(String mName, 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.
protected void
log(int pLevel, String mName, String pMsg)
void
throwing(String mName, Throwable pThrowable)
Logs the given Throwable.
void
warn(String mName, String pMsg)
Logs the given message with warning level.
void
warn(String mName, String pMsg, Object pDetails)
Logs the given message with warning level.
void
warn(String mName, String pMsg, Object[] pDetails)
Logs the given message with warning level.

Constructor Details

AntProjectLogger

public AntProjectLogger(String pName,
                        Task pTask)
Creates a new instance for the given task.

Method Details

asString

protected String asString(Object[] pDetails)

entering

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

entering

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

entering

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

error

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

error

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

error

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

exiting

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

exiting

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

exiting

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

fine

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

fine

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

fine

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

finer

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

finer

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

finer

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

finest

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

finest

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

finest

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

info

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

info

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

info

public void info(String mName,
                 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

log

protected void log(int pLevel,
                   String mName,
                   String pMsg)

throwing

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

warn

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

warn

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

warn

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