|
|
Archives of the TeradataForum
Message Posted: Wed, 27 Aug 2003 @ 15:23:13 GMT
Subj: | | Re: Java, Log4j, "Category root set to OFF", Teradata JDBC type 4 driver |
|
From: | | Sullivan, Sean C |
This is my workaround.
I call this method after the Teradata JDBC type 4 driver is loaded.
static void resetLoggingConfiguration()
{
try
{
LogManager.resetConfiguration();
String strConfig = System.getProperty("log4j.configuration");
URL configFile = new java.net.URL(strConfig);
DOMConfigurator.configure(configFile);
Logger rootLogger = LogManager.getRootLogger();
rootLogger.setLevel(Level.ALL);
}
catch (Exception ex)
{
ex.printStackTrace();
}
finally
{
log.info("resetLoggingConfiguration() called");
}
-Sean
| |