|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectde.unidu.is.util.Log
Provides utiliy methods for tje LOG4J framework.
This class expects the LOG4J configuration file in conf/log4j.
Additional configuration files can be loaded.
| Constructor Summary | |
Log()
|
|
| Method Summary | |
static void |
addConfigFile(java.net.URL url)
Initialises this class. |
static void |
error(java.lang.String msg)
Logs a message to the unidu.error logger. |
static void |
error(java.lang.Throwable ex)
Logs an exception to the unidu.error logger. |
static void |
error(java.lang.Throwable ex,
java.lang.String msg)
Logs an exception to the unidu.error logger. |
static org.apache.log4j.Logger |
getLogger(java.lang.Class c)
Returns a logger for the specified class. |
static org.apache.log4j.Logger |
getLogger(java.lang.String name)
Returns a logger for the specified name. |
static void |
setConfFile(java.io.File file)
Sets the LOG4J config file. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Log()
| Method Detail |
public static org.apache.log4j.Logger getLogger(java.lang.Class c)
c - class
public static org.apache.log4j.Logger getLogger(java.lang.String name)
name - logger name
public static void addConfigFile(java.net.URL url)
This method loads the log4j configuration (if not already done) from
conf/log4j.
public static void error(java.lang.Throwable ex)
ex - exception to be loggedpublic static void error(java.lang.String msg)
msg - message to be logged
public static void error(java.lang.Throwable ex,
java.lang.String msg)
ex - exception to be loggedpublic static void setConfFile(java.io.File file)
file - LOG4J config file
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||