|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.fzj.unicore.wsrflite.utils.Log
public class Log
| Field Summary | |
|---|---|
static String |
ADMIN
logger prefix for admin stuff |
static String |
PERSISTENCE
logger prefix for persistence related code |
static String |
SERVICES
logger prefix for services |
static String |
WSRFLITE
logger prefix for general WSRFlite code |
| Constructor Summary | |
|---|---|
protected |
Log()
|
| Method Summary | |
|---|---|
static void |
cleanLogContext()
|
static String |
createFaultMessage(String message,
Throwable cause)
construct a user-friendly error message |
static org.apache.log4j.Logger |
getLogger(String prefix,
Class<?> clazz)
returns a logger, using the given prefix and the simple name of the given class |
static String |
getLoggerName(String prefix,
Class<?> clazz)
returns a logger name, using the given prefix and the simple name of the given class |
static void |
logException(String message,
Throwable cause)
log an error message to the default logger ("unicore.wsrflite") A human-friendly message is constructed and logged at "INFO" level. |
static void |
logException(String message,
Throwable cause,
org.apache.log4j.Logger logger)
log an error message to the specified logger. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String ADMIN
public static final String WSRFLITE
public static final String PERSISTENCE
public static final String SERVICES
| Constructor Detail |
|---|
protected Log()
| Method Detail |
|---|
public static String getLoggerName(String prefix,
Class<?> clazz)
prefix - - the prefix to useclazz - - the class
public static org.apache.log4j.Logger getLogger(String prefix,
Class<?> clazz)
prefix - - the prefix to useclazz - - the class
public static void logException(String message,
Throwable cause)
message - - the error messagecause - - the cause of the error
public static void logException(String message,
Throwable cause,
org.apache.log4j.Logger logger)
message - - the error messagecause - - the cause of the errorlogger - - the logger to use
public static String createFaultMessage(String message,
Throwable cause)
message - cause -
public static void cleanLogContext()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||