|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.base.apps.util.config.LogManager
public class LogManager
Singleton factory to acquire application-specific loggers.
| Constructor Summary | |
|---|---|
LogManager()
|
|
| Method Summary | |
|---|---|
static void |
configure()
Configure this LogFactory with a log4j.xml file,
which is expected to be in the runtime classpath. |
static void |
configure(ResourceManager rsrcMgr)
Configure this LogFactory with the given ResourceManager,
which is expected to have a property named "log4j.file". |
static void |
configure(String cfgFile)
Configure this LogFactory with the given configuration file. |
static org.apache.commons.logging.Log |
getLogger(Class<?> clz)
Returns an instance of the commons logger registered to the specified class. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LogManager()
| Method Detail |
|---|
public static void configure(ResourceManager rsrcMgr)
LogFactory with the given ResourceManager,
which is expected to have a property named "log4j.file".
rsrcMgr - The given configurator.public static void configure()
LogFactory with a log4j.xml file,
which is expected to be in the runtime classpath.
public static void configure(String cfgFile)
LogFactory with the given configuration file.
cfgFile - The given configuration file.public static org.apache.commons.logging.Log getLogger(Class<?> clz)
clz - The logging class.
|
Please visit Base Apps, hosted on Sourceforge.net. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||