|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.wsrp4j.log.LoggerImpl
Wrapper class for a log4j logger
| Field Summary | |
private int |
level
|
private org.apache.log4j.Logger |
logger
|
| Fields inherited from interface org.apache.wsrp4j.log.Logger |
ERROR, INFO, TRACE_HIGH, TRACE_LOW, TRACE_MEDIUM, WARN |
| Constructor Summary | |
(package private) |
LoggerImpl(org.apache.log4j.Logger aLogger,
int logLevel)
|
| Method Summary | |
private org.apache.log4j.Level |
determineLog4jLevel(int wsrp4jLevel)
|
void |
entry(int logLevel,
java.lang.String loggingMethod)
Logs entry into a method. |
void |
entry(int logLevel,
java.lang.String loggingMethod,
java.lang.Object parm1)
Logs entry into a method. |
void |
entry(int logLevel,
java.lang.String loggingMethod,
java.lang.Object[] parms)
Logs entry into a method. |
void |
exit(int logLevel,
java.lang.String loggingMethod)
Logs exit from a method. |
void |
exit(int logLevel,
java.lang.String loggingMethod,
boolean retValue)
Logs exit from a method. |
void |
exit(int logLevel,
java.lang.String loggingMethod,
byte retValue)
Logs exit from a method. |
void |
exit(int logLevel,
java.lang.String loggingMethod,
char retValue)
Logs exit from a method. |
void |
exit(int logLevel,
java.lang.String loggingMethod,
double retValue)
Logs exit from a method. |
void |
exit(int logLevel,
java.lang.String loggingMethod,
float retValue)
Logs exit from a method. |
void |
exit(int logLevel,
java.lang.String loggingMethod,
int retValue)
Logs exit from a method. |
void |
exit(int logLevel,
java.lang.String loggingMethod,
long retValue)
Logs exit from a method. |
void |
exit(int logLevel,
java.lang.String loggingMethod,
java.lang.Object retValue)
Logs exit from a method. |
void |
exit(int logLevel,
java.lang.String loggingMethod,
short retValue)
Logs exit from a method. |
boolean |
isLogging(int logLevel)
Determines if this logger is logging data for a given log level or not. |
void |
stackTrace(int logLevel,
java.lang.String loggingMethod,
java.lang.String text)
Logs the call stack. |
void |
text(int logLevel,
java.lang.String loggingMethod,
java.lang.String text)
Logs a text message with no parameters. |
void |
text(int logLevel,
java.lang.String loggingMethod,
java.lang.String text,
java.lang.Object parm1)
Logs a text message with one parameter. |
void |
text(int logLevel,
java.lang.String loggingMethod,
java.lang.String text,
java.lang.Object[] parms)
Logs a text message with an array of parameters. |
void |
text(int logLevel,
java.lang.String loggingMethod,
java.lang.Throwable t,
java.lang.String text)
Logs a text message with no parameters. |
void |
text(int logLevel,
java.lang.String loggingMethod,
java.lang.Throwable t,
java.lang.String text,
java.lang.Object[] parms)
Logs a text message with an array of parameters. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private org.apache.log4j.Logger logger
private int level
| Constructor Detail |
LoggerImpl(org.apache.log4j.Logger aLogger,
int logLevel)
| Method Detail |
public boolean isLogging(int logLevel)
Logger
isLogging in interface LoggerlogLevel - The log level to be checked.
true when the object is logging the log level;
false otherwise.
public void text(int logLevel,
java.lang.String loggingMethod,
java.lang.String text)
Logger
text in interface LoggerlogLevel - The level of the log entry.loggingMethod - The name of the logging method.text - The message text.
public void text(int logLevel,
java.lang.String loggingMethod,
java.lang.String text,
java.lang.Object parm1)
Logger
text in interface LoggerlogLevel - The level of the log entry.loggingMethod - The name of the logging method.text - The message text.parm1 - An element to be displayed with the message.
public void text(int logLevel,
java.lang.String loggingMethod,
java.lang.String text,
java.lang.Object[] parms)
Logger
text in interface LoggerlogLevel - The level of the log entry.loggingMethod - The name of the logging method.text - The message text.parms - An array of elements to be displayed with the message.
public void text(int logLevel,
java.lang.String loggingMethod,
java.lang.Throwable t,
java.lang.String text)
Logger
text in interface LoggerlogLevel - The level of the log entry.loggingMethod - The name of the logging method.t - The throwable that is cause for this log entry.text - The message text.
public void text(int logLevel,
java.lang.String loggingMethod,
java.lang.Throwable t,
java.lang.String text,
java.lang.Object[] parms)
Logger
text in interface LoggerlogLevel - The level of the log entry.loggingMethod - The name of the logging method.t - The throwable that is cause for this log entry.text - The message text.parms - An array of elements to be displayed with the message.
public void entry(int logLevel,
java.lang.String loggingMethod)
Logger
entry in interface LoggerlogLevel - The level of the log entry.loggingMethod - The name of the logging method.
public void entry(int logLevel,
java.lang.String loggingMethod,
java.lang.Object parm1)
Logger
entry in interface LoggerlogLevel - The level of the log entry.loggingMethod - The name of the logging method.parm1 - An element to be displayed as trace data.
public void entry(int logLevel,
java.lang.String loggingMethod,
java.lang.Object[] parms)
Logger
entry in interface LoggerlogLevel - The level of the log entry.loggingMethod - The name of the logging method.parms - An array of parameters passed to the method.
public void exit(int logLevel,
java.lang.String loggingMethod)
Logger
exit in interface LoggerlogLevel - The level of the log entry.loggingMethod - The name of the logging method.
public void exit(int logLevel,
java.lang.String loggingMethod,
byte retValue)
Logger
exit in interface LoggerlogLevel - The level of the log entry.loggingMethod - The name of the logging method.retValue - The returned value.
public void exit(int logLevel,
java.lang.String loggingMethod,
short retValue)
Logger
exit in interface LoggerlogLevel - The level of the log entry.loggingMethod - The name of the logging method.retValue - The returned value.
public void exit(int logLevel,
java.lang.String loggingMethod,
int retValue)
Logger
exit in interface LoggerlogLevel - The level of the log entry.loggingMethod - The name of the logging method.retValue - The returned value.
public void exit(int logLevel,
java.lang.String loggingMethod,
long retValue)
Logger
exit in interface LoggerlogLevel - The level of the log entry.loggingMethod - The name of the logging method.retValue - The returned value.
public void exit(int logLevel,
java.lang.String loggingMethod,
float retValue)
Logger
exit in interface LoggerlogLevel - The level of the log entry.loggingMethod - The name of the logging method.retValue - The returned value.
public void exit(int logLevel,
java.lang.String loggingMethod,
double retValue)
Logger
exit in interface LoggerlogLevel - The level of the log entry.loggingMethod - The name of the logging method.retValue - The returned value.
public void exit(int logLevel,
java.lang.String loggingMethod,
char retValue)
Logger
exit in interface LoggerlogLevel - The level of the log entry.loggingMethod - The name of the logging method.retValue - The returned value.
public void exit(int logLevel,
java.lang.String loggingMethod,
boolean retValue)
Logger
exit in interface LoggerlogLevel - The level of the log entry.loggingMethod - The name of the logging method.retValue - The returned value.
public void exit(int logLevel,
java.lang.String loggingMethod,
java.lang.Object retValue)
Logger
exit in interface LoggerlogLevel - The level of the log entry.loggingMethod - The name of the logging method.retValue - The returned value.
public void stackTrace(int logLevel,
java.lang.String loggingMethod,
java.lang.String text)
Logger
stackTrace in interface LoggerlogLevel - The level of the log entry.loggingMethod - The name of the logging method.text - The message text.private org.apache.log4j.Level determineLog4jLevel(int wsrp4jLevel)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||