Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Wed, 27 Aug 2003 @ 15:23:13 GMT


     
  <Prev Next>   <<First <Prev
Next>
Last>>
 


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



     
  <Prev Next>   <<First <Prev
Next>
Last>>
 
 
 
 
 
 
 
 
 
  
  Top Home Privacy Feedback  
 
 
Copyright for the TeradataForum (TDATA-L), Manta BlueSky    
Copyright 2016 - All Rights Reserved    
Last Modified: 15 Jun 2023