"Category root set to OFF" - why?
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Sean_Sullivan
Posted On:   Thursday, August 21, 2003 09:53 AM

My application uses the NCR Teradata JDBC driver. terajdbc4.jar - version 3.0.0.1 http://www.teradata.com/ By default, this driver will shut off Log4j's root logger. I don't know why NCR decided to implement the driver in this manner. I found a PDF on www.teradata.com: Teradata-JDBC-2012-033C.pdf The PDF explains how Teradata's JDBC driver uses Log4j. I am planning to contact Teradata tech support. > -----Original Message----- > > Here is my configuration: > > Jakarta Commons Logging 1.0.3 > Log4j 1.2.8 > IBM Websphere Application Server 4.0.5 > > My stdout log file shows t   More>>
			
My application uses the NCR Teradata JDBC driver.
terajdbc4.jar - version 3.0.0.1

http://www.teradata.com/

By default, this driver will shut off Log4j's root logger.

I don't know why NCR decided to implement the driver in this manner.

I found a PDF on www.teradata.com: Teradata-JDBC-2012-033C.pdf

The PDF explains how Teradata's JDBC driver uses Log4j.

I am planning to contact Teradata tech support.

> -----Original Message-----
>
> Here is my configuration:
>
> Jakarta Commons Logging 1.0.3
> Log4j 1.2.8
> IBM Websphere Application Server 4.0.5
>
> My stdout log file shows this output:
>
> log4j: Parsing for [root] with value=[OFF].
> log4j: Level token is [OFF].
> log4j: Category root set to OFF
> log4j: Finished configuring.
>
> What does "Category root set to OFF" mean?
>
>
> Here is my config file, log4j.xml
>
> <?xml version="1.0" encoding="UTF-8"?>
>
>
>
>
>
>
>
>
>
>
>
> debug="true" >
>
>
>
>
>
> value="%-5p %c{3} - %m [%X{server.hostname}]%n"/>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> value="%-5p %c{3} - %m [%X{server.hostname}]%n"/>
>
>
>
>
>
>
>
>
>
> class="org.apache.log4j.net.SMTPAppender">
>
>
>
>
>
>
>
> value="[%d{DATE}]%nServer hostname:
> %X{server.hostname}%n%-5p %c{3} - %m%nThread name: %t%n"/>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>

   <<Less

Re: "Category root set to OFF" - why?

Posted By:   Sean_Sullivan  
Posted On:   Thursday, August 21, 2003 11:43 AM

This is my workaround.

I call this method after the Teradata JDBC 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");
}
About | Sitemap | Contact