nl.knowledgeplaza.util
Class Log4jUtil
java.lang.Object
nl.knowledgeplaza.util.Log4jUtil
public class Log4jUtil
- extends java.lang.Object
Several convenience methods for JDBC related tasks.
TODO: can we push in some pooling and optional caching?
- Version:
- $Revision: 1.2 $
|
Field Summary |
static java.lang.String |
SOURCECODE_VERSION
Standard variable for determining version of a class file. |
|
Method Summary |
static org.apache.log4j.Logger |
createLogger()
Automatically create a log4j logger off the class that class this method:
static org.apache.log4j.Logger log4j = Log4jUtil.createLogger(); |
static org.apache.log4j.Logger |
createLogger(java.lang.String postfix)
Automatically create a log4j logger off the class that class this method:
static org.apache.log4j.Logger log4j = Log4jUtil.createLogger(); |
static void |
setLogLevel(java.lang.String loggerId,
org.apache.log4j.Level level)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SOURCECODE_VERSION
public static final java.lang.String SOURCECODE_VERSION
- Standard variable for determining version of a class file.
- See Also:
- Constant Field Values
Log4jUtil
public Log4jUtil()
createLogger
public static org.apache.log4j.Logger createLogger()
- Automatically create a log4j logger off the class that class this method:
static org.apache.log4j.Logger log4j = Log4jUtil.createLogger();
- Returns:
createLogger
public static org.apache.log4j.Logger createLogger(java.lang.String postfix)
- Automatically create a log4j logger off the class that class this method:
static org.apache.log4j.Logger log4j = Log4jUtil.createLogger();
- Returns:
setLogLevel
public static void setLogLevel(java.lang.String loggerId,
org.apache.log4j.Level level)
- Parameters:
loggerId - level -
Copyright © 2010. All Rights Reserved.