db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arm...@apache.org
Subject cvs commit: db-ojb/src/test/org/apache/ojb log4j.properties OJB-logging.properties
Date Thu, 17 Nov 2005 01:34:20 GMT
arminw      2005/11/16 17:34:20

  Modified:    src/java/org/apache/ojb/broker/util/logging Tag:
                        OJB_1_0_RELEASE LoggerFactoryImpl.java
                        PoorMansLoggerImpl.java
               src/test/org/apache/ojb Tag: OJB_1_0_RELEASE
                        log4j.properties OJB-logging.properties
  Added:       src/java/org/apache/ojb/broker/util/logging Tag:
                        OJB_1_0_RELEASE StringBufferLoggerImpl.java
  Log:
  improve logging, while OJB bootstrap process all boot log messages are written in a buffer.
  On the first #getLogger(...) call OJB checks for logging environment:
  1. When logging environment is found initialize logger, get message string from StringBufferLogger
and log it as normal info message in logger.
  2. Logging environment is missing or fails on initialization, then use PoorMansLogger as
logger and log StringBufferLogger message string as error.
  
  update logging properties files
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.18.2.4  +100 -27   db-ojb/src/java/org/apache/ojb/broker/util/logging/LoggerFactoryImpl.java
  
  Index: LoggerFactoryImpl.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/util/logging/LoggerFactoryImpl.java,v
  retrieving revision 1.18.2.3
  retrieving revision 1.18.2.4
  diff -u -r1.18.2.3 -r1.18.2.4
  --- LoggerFactoryImpl.java	9 Nov 2005 01:02:37 -0000	1.18.2.3
  +++ LoggerFactoryImpl.java	17 Nov 2005 01:34:19 -0000	1.18.2.4
  @@ -19,6 +19,7 @@
   import java.util.Map;
   
   import org.apache.ojb.broker.util.ClassHelper;
  +import org.apache.commons.lang.SystemUtils;
   
   /**
    * The factory class <code>LoggerFactory</code> can be used
  @@ -34,12 +35,17 @@
    */
   public class LoggerFactoryImpl
   {
  +    public static final String BOOT_LOG_LEVERL_STR = "OJB.bootLogLevel";
  +    public static final String BOOT_STR = "BOOT";
  +    public static final String DEFAULT_STR = "BOOT";
       public static final LoggerFactoryImpl INSTANCE = new LoggerFactoryImpl();
   
       private Logger defaultLogger = null;
   
       private Logger bootLogger = null;
   
  +    private boolean bootLoggerIsReassigned = false;
  +
       /** Used for caching logger instances */
       private Map cache = new HashMap();
       /** The configuration */
  @@ -77,10 +83,8 @@
       {
           if(bootLogger == null)
           {
  -            bootLogger = new PoorMansLoggerImpl("BOOT");
  -            // allow user to set boot log level via system property
  -            String level = System.getProperty("OJB.bootLogLevel", LoggingConfiguration.OJB_DEFAULT_BOOT_LOG_LEVEL);
  -            ((PoorMansLoggerImpl) bootLogger).setLevel(level);
  +            // create a StringBuffer based Logger for boot log operations
  +            bootLogger = createStringBufferLogger_Boot();
           }
           return bootLogger;
       }
  @@ -97,7 +101,7 @@
       {
           if(defaultLogger == null)
           {
  -            defaultLogger = getLogger("DEFAULT");
  +            defaultLogger = getLogger(DEFAULT_STR);
           }
           return defaultLogger;
       }
  @@ -130,38 +134,107 @@
   
           if(logger == null)
           {
  -            Class loggerClass = null;
               try
               {
                   // get the configuration (not from the configurator because this is independent)
  -                LoggingConfiguration conf = getConfiguration();
  -
  -                loggerClass = conf.getLoggerClass();
  -                getBootLogger().debug("Using logger class " + loggerClass + " for " + loggerName);
  -                logger = (Logger) ClassHelper.newInstance(loggerClass, String.class, loggerName);
  -
  -                // configure the logger
  -                try
  -                {
  -                    getBootLogger().debug("Initializing logger instance " + loggerName);
  -                    logger.configure(conf);
  -                }
  -                catch(Exception ex)
  +                logger = createLoggerInstance(loggerName);
  +                if(getBootLogger().isDebugEnabled())
                   {
  -                    logger = getBootLogger();
  -                    logger.error("[" + this.getClass().getName() + "] Could not initialize
logger for class " + loggerClass.getName(), ex);
  +                    getBootLogger().debug("Using logger class '"
  +                            + (getConfiguration() != null ? getConfiguration().getLoggerClass()
: null)
  +                            + "' for " + loggerName);
                   }
  -
  -                //cache it so we can get it faster the next time
  -                cache.put(loggerName, logger);
  +                // configure the logger
  +                getBootLogger().debug("Initializing logger instance " + loggerName);
  +                logger.configure(conf);
               }
               catch(Throwable t)
               {
  +                // do reassign check and signal logger creation failure
  +                reassignBootLogger(true);
                   logger = getBootLogger();
  -                logger.error("[" + this.getClass().getName() + "] Could not set logger
for class '"
  -                        + (loggerClass != null ? loggerClass.getName() : "null") + "'",
t);
  +                getBootLogger().error("[" + this.getClass().getName()
  +                            + "] Could not initialize logger " + (conf != null ? conf.getLoggerClass()
: null), t);
               }
  +            //cache it so we can get it faster the next time
  +            cache.put(loggerName, logger);
  +            // do reassign check
  +            reassignBootLogger(false);
           }
           return logger;
       }
  +
  +    /**
  +     * Creates a new Logger instance for the specified name.
  +     */
  +    private Logger createLoggerInstance(String loggerName) throws Exception
  +    {
  +        Class loggerClass = getConfiguration().getLoggerClass();
  +        Logger log = (Logger) ClassHelper.newInstance(loggerClass, String.class, loggerName);
  +        log.configure(getConfiguration());
  +        return log;
  +    }
  +
  +    /**
  +     *
  +     * @param forceError
  +     */
  +    protected synchronized void reassignBootLogger(boolean forceError)
  +    {
  +        // if the boot logger was already reassigned do nothing
  +        if(!bootLoggerIsReassigned)
  +        {
  +            Logger newBootLogger = null;
  +            String name = getBootLogger().getName();
  +            try
  +            {
  +                // 1. try to use a Logger instance based on the configuration files
  +                newBootLogger = createLoggerInstance(name);
  +            }
  +            catch(Exception e) {/*ignore*/}
  +            if(newBootLogger == null)
  +            {
  +                // 2. if no logging library can be found, use OJB's console logger
  +                newBootLogger = createPoorMansLogger_Boot();
  +            }
  +            if(getBootLogger() instanceof StringBufferLoggerImpl)
  +            {
  +                /*
  +                if the StringBuffer based Logger was used for OJB bootstrap process
  +                get the logging statement string and log it on the "real" Logger instance
  +                */
  +                StringBufferLoggerImpl strLogger = (StringBufferLoggerImpl) getBootLogger();
  +                String bootMessage = strLogger.flushLogBuffer();
  +                String eol = SystemUtils.LINE_SEPARATOR;
  +                if(forceError || strLogger.isErrorLog())
  +                {
  +                    newBootLogger.error("-- boot log messages -->" + eol + bootMessage);
  +                }
  +                else
  +                {
  +                    newBootLogger.info("-- boot log messages -->" + eol + bootMessage);
  +                }
  +            }
  +            bootLogger = newBootLogger;
  +            bootLoggerIsReassigned = true;
  +        }
  +    }
  +
  +    protected Logger createPoorMansLogger_Boot()
  +    {
  +        Logger bootLogger = new PoorMansLoggerImpl(BOOT_STR);
  +        // allow user to set boot log level via system property
  +        String level = System.getProperty(BOOT_LOG_LEVERL_STR, LoggingConfiguration.OJB_DEFAULT_BOOT_LOG_LEVEL);
  +        ((PoorMansLoggerImpl) bootLogger).setLevel(level);
  +        return bootLogger;
  +    }
  +
  +    protected Logger createStringBufferLogger_Boot()
  +    {
  +        Logger bootLogger = new StringBufferLoggerImpl(BOOT_STR);
  +        // allow user to set boot log level via system property
  +        String level = System.getProperty(BOOT_LOG_LEVERL_STR, LoggingConfiguration.OJB_DEFAULT_BOOT_LOG_LEVEL);
  +        ((PoorMansLoggerImpl) bootLogger).setLevel(level);
  +        return bootLogger;
  +    }
   }
  
  
  
  1.11.2.2  +15 -16    db-ojb/src/java/org/apache/ojb/broker/util/logging/PoorMansLoggerImpl.java
  
  Index: PoorMansLoggerImpl.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/util/logging/PoorMansLoggerImpl.java,v
  retrieving revision 1.11.2.1
  retrieving revision 1.11.2.2
  diff -u -r1.11.2.1 -r1.11.2.2
  --- PoorMansLoggerImpl.java	2 Sep 2005 13:24:52 -0000	1.11.2.1
  +++ PoorMansLoggerImpl.java	17 Nov 2005 01:34:19 -0000	1.11.2.2
  @@ -25,23 +25,22 @@
    * @author Thomas Mahler
    * @version $Id$
    */
  -public class PoorMansLoggerImpl
  -    implements Logger
  +public class PoorMansLoggerImpl implements Logger
   {
  -    private static final String STR_DEBUG = "DEBUG";
  -    private static final String STR_INFO = "INFO";
  -    private static final String STR_WARN = "WARN";
  -    private static final String STR_ERROR = "ERROR";
  -    private static final String STR_FATAL = "FATAL";
  -
  -    private static final String STR_DEBUG_MSG = "DEBUG: ";
  -    private static final String STR_INFO_MSG = "INFO: ";
  -    private static final String STR_WARN_MSG = "WARN: ";
  -    private static final String STR_ERROR_MSG = "ERROR: ";
  -    private static final String STR_FATAL_MSG = "FATAL: ";
  +    protected static final String STR_DEBUG = "DEBUG";
  +    protected static final String STR_INFO = "INFO";
  +    protected static final String STR_WARN = "WARN";
  +    protected static final String STR_ERROR = "ERROR";
  +    protected static final String STR_FATAL = "FATAL";
  +
  +    protected static final String STR_DEBUG_MSG = "DEBUG: ";
  +    protected static final String STR_INFO_MSG = "INFO: ";
  +    protected static final String STR_WARN_MSG = "WARN: ";
  +    protected static final String STR_ERROR_MSG = "ERROR: ";
  +    protected static final String STR_FATAL_MSG = "FATAL: ";
   
  -    private static final String BRAKE_OPEN = "[";
  -    private static final String BRAKE_CLOSE = "] ";
  +    protected static final String BRAKE_OPEN = "[";
  +    protected static final String BRAKE_CLOSE = "] ";
   
       private String name ;
   
  
  
  
  No                   revision
  
  Index: PoorMansLoggerImpl.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/util/logging/PoorMansLoggerImpl.java,v
  retrieving revision 1.11.2.1
  retrieving revision 1.11.2.2
  diff -u -r1.11.2.1 -r1.11.2.2
  --- PoorMansLoggerImpl.java	2 Sep 2005 13:24:52 -0000	1.11.2.1
  +++ PoorMansLoggerImpl.java	17 Nov 2005 01:34:19 -0000	1.11.2.2
  @@ -25,23 +25,22 @@
    * @author Thomas Mahler
    * @version $Id$
    */
  -public class PoorMansLoggerImpl
  -    implements Logger
  +public class PoorMansLoggerImpl implements Logger
   {
  -    private static final String STR_DEBUG = "DEBUG";
  -    private static final String STR_INFO = "INFO";
  -    private static final String STR_WARN = "WARN";
  -    private static final String STR_ERROR = "ERROR";
  -    private static final String STR_FATAL = "FATAL";
  -
  -    private static final String STR_DEBUG_MSG = "DEBUG: ";
  -    private static final String STR_INFO_MSG = "INFO: ";
  -    private static final String STR_WARN_MSG = "WARN: ";
  -    private static final String STR_ERROR_MSG = "ERROR: ";
  -    private static final String STR_FATAL_MSG = "FATAL: ";
  +    protected static final String STR_DEBUG = "DEBUG";
  +    protected static final String STR_INFO = "INFO";
  +    protected static final String STR_WARN = "WARN";
  +    protected static final String STR_ERROR = "ERROR";
  +    protected static final String STR_FATAL = "FATAL";
  +
  +    protected static final String STR_DEBUG_MSG = "DEBUG: ";
  +    protected static final String STR_INFO_MSG = "INFO: ";
  +    protected static final String STR_WARN_MSG = "WARN: ";
  +    protected static final String STR_ERROR_MSG = "ERROR: ";
  +    protected static final String STR_FATAL_MSG = "FATAL: ";
   
  -    private static final String BRAKE_OPEN = "[";
  -    private static final String BRAKE_CLOSE = "] ";
  +    protected static final String BRAKE_OPEN = "[";
  +    protected static final String BRAKE_CLOSE = "] ";
   
       private String name ;
   
  
  
  
  No                   revision
  
  Index: PoorMansLoggerImpl.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/util/logging/PoorMansLoggerImpl.java,v
  retrieving revision 1.11.2.1
  retrieving revision 1.11.2.2
  diff -u -r1.11.2.1 -r1.11.2.2
  --- PoorMansLoggerImpl.java	2 Sep 2005 13:24:52 -0000	1.11.2.1
  +++ PoorMansLoggerImpl.java	17 Nov 2005 01:34:19 -0000	1.11.2.2
  @@ -25,23 +25,22 @@
    * @author Thomas Mahler
    * @version $Id$
    */
  -public class PoorMansLoggerImpl
  -    implements Logger
  +public class PoorMansLoggerImpl implements Logger
   {
  -    private static final String STR_DEBUG = "DEBUG";
  -    private static final String STR_INFO = "INFO";
  -    private static final String STR_WARN = "WARN";
  -    private static final String STR_ERROR = "ERROR";
  -    private static final String STR_FATAL = "FATAL";
  -
  -    private static final String STR_DEBUG_MSG = "DEBUG: ";
  -    private static final String STR_INFO_MSG = "INFO: ";
  -    private static final String STR_WARN_MSG = "WARN: ";
  -    private static final String STR_ERROR_MSG = "ERROR: ";
  -    private static final String STR_FATAL_MSG = "FATAL: ";
  +    protected static final String STR_DEBUG = "DEBUG";
  +    protected static final String STR_INFO = "INFO";
  +    protected static final String STR_WARN = "WARN";
  +    protected static final String STR_ERROR = "ERROR";
  +    protected static final String STR_FATAL = "FATAL";
  +
  +    protected static final String STR_DEBUG_MSG = "DEBUG: ";
  +    protected static final String STR_INFO_MSG = "INFO: ";
  +    protected static final String STR_WARN_MSG = "WARN: ";
  +    protected static final String STR_ERROR_MSG = "ERROR: ";
  +    protected static final String STR_FATAL_MSG = "FATAL: ";
   
  -    private static final String BRAKE_OPEN = "[";
  -    private static final String BRAKE_CLOSE = "] ";
  +    protected static final String BRAKE_OPEN = "[";
  +    protected static final String BRAKE_CLOSE = "] ";
   
       private String name ;
   
  
  
  
  1.1.2.1   +106 -0    db-ojb/src/java/org/apache/ojb/broker/util/logging/Attic/StringBufferLoggerImpl.java
  
  
  
  
  No                   revision
  No                   revision
  1.6.2.1   +67 -4     db-ojb/src/test/org/apache/ojb/log4j.properties
  
  Index: log4j.properties
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/test/org/apache/ojb/log4j.properties,v
  retrieving revision 1.6
  retrieving revision 1.6.2.1
  diff -u -r1.6 -r1.6.2.1
  --- log4j.properties	5 Apr 2004 13:58:59 -0000	1.6
  +++ log4j.properties	17 Nov 2005 01:34:20 -0000	1.6.2.1
  @@ -28,10 +28,73 @@
   # DEBUG
   
   log4j.rootCategory=WARN, A1, A2
  -#log4j.logger.org.apache.ojb.broker.accesslayer.sql.SqlGeneratorDefaultImpl=DEBUG
  -#log4j.logger.org.apache.ojb.broker.metadata.RepositoryXmlHandler=DEBUG
  -#log4j.logger.org.apache.ojb.broker.accesslayer.ConnectionManager=INFO
  -#log4j.logger.org.apache.ojb.odmg=INFO
  +#
  +# The boot log level used to initialize logging
  +log4j.logger.BOOT=INFO
  +#
  +# The Default Logger instance used within OJB
  +log4j.logger.DEFAULT=WARN
  +#
  +# PB-api and Kernel
  +# -----------------
  +# Logger for PB-api base classes
  +log4j.logger.org.apache.ojb.broker.core.PersistenceBrokerFactoryDefaultImpl=WARN
  +log4j.logger.org.apache.ojb.broker.core.PersistenceBrokerFactorySyncImpl=WARN
  +log4j.logger.org.apache.ojb.broker.core.PersistenceBrokerImpl=WARN
  +#
  +# Logger for metadata classes, useful for debugging parsing of repository.xml!
  +# persistence capable object metadata
  +log4j.logger.org.apache.ojb.broker.metadata.DescriptorRepository=WARN
  +log4j.logger.org.apache.ojb.broker.metadata.RepositoryXmlHandler=WARN
  +log4j.logger.org.apache.ojb.broker.metadata.ConnectionDescriptorXmlHandler=WARN
  +log4j.logger.org.apache.ojb.broker.metadata.RepositoryPersistor=WARN
  +log4j.logger.org.apache.ojb.broker.metadata.SuperReferenceDescriptor$SuperReferenceField=WARN
  +#
  +# Logger for jdbc access querying and object materialization, useful
  +# for debugging JDBC related problems
  +log4j.logger.org.apache.ojb.broker.accesslayer.JdbcAccessImpl=WARN
  +log4j.logger.org.apache.ojb.broker.accesslayer.RsIterator=WARN
  +log4j.logger.org.apache.ojb.broker.accesslayer.StatementsForClassImpl=WARN
  +log4j.logger.org.apache.ojb.broker.accesslayer.sql.SqlGeneratorDefaultImpl=WARN
  +#
  +# Logger for connection handling
  +log4j.logger.org.apache.ojb.broker.accesslayer.ConnectionManagerImpl=WARN
  +log4j.logger.org.apache.ojb.broker.accesslayer.ConnectionFactoryAbstractImpl=WARN
  +log4j.logger.org.apache.ojb.broker.accesslayer.ConnectionFactoryPooledImpl=WARN
  +log4j.logger.org.apache.ojb.broker.accesslayer.ConnectionFactoryDBCPImpl=WARN
  +#
  +# Logger for object caching
  +log4j.logger.org.apache.ojb.broker.cache.CacheDistributor=WARN
  +log4j.logger.org.apache.ojb.broker.cache.MaterializationCache=WARN
  +log4j.logger.org.apache.ojb.broker.cache.ObjectCacheDefaultImpl=WARN
  +log4j.logger.org.apache.ojb.broker.cache.ObjectCacheTwoLevelImpl=WARN
  +#
  +# Logger for Oracle9i platform, useful for tracing failing Oracle-extensions or large LOB-support
  +log4j.logger.org.apache.ojb.broker.platforms.PlatformOracle9iImpl=WARN
  +#
  +# Logger for proxy classes
  +log4j.logger.org.apache.ojb.broker.core.proxy.IndirectionHandlerJDKImpl=WARN
  +log4j.logger.org.apache.ojb.broker.core.proxy.IndirectionHandlerCGLIBImpl=WARN
  +log4j.logger.org.apache.ojb.broker.core.proxy.ProxyFactoryJDKImpl=WARN
  +log4j.logger.org.apache.ojb.broker.core.proxy.ProxyFactoryCGLIBImpl=WARN
  +#
  +# OJB locking implementations
  +log4j.logger.org.apache.ojb.broker.locking.LockManagerInMemoryImpl=WARN
  +log4j.logger.org.apache.ojb.broker.locking.LockManagerCommonsImpl=WARN
  +log4j.logger.org.apache.ojb.broker.locking.LockManagerRemoteImpl=WARN
  +log4j.logger.org.apache.ojb.broker.locking.CommonsOJBLockManager=WARN
  +#
  +# odmg-api
  +# --------
  +log4j.logger.org.apache.ojb.odmg.TransactionImpl=WARN
  +log4j.logger.org.apache.ojb.odmg.J2EETransactionImpl=WARN
  +log4j.logger.org.apache.ojb.odmg.ImplementationImpl=WARN
  +log4j.logger.org.apache.ojb.odmg.DatabaseImpl=WARN
  +log4j.logger.org.apache.ojb.odmg.ObjectEnvelopeTable=WARN
  +log4j.logger.org.apache.ojb.odmg.ObjectEnvelope=WARN
  +log4j.logger.org.apache.ojb.odmg.ObjectEnvelopeOrdering=WARN
  +log4j.logger.org.apache.ojb.odmg.LocalTxManager=WARN
  +log4j.logger.org.apache.ojb.odmg.JTATxManager=WARN
   
   
   # A1 is set to be ConsoleAppender sending its output to System.out
  
  
  
  1.1.2.7   +35 -31    db-ojb/src/test/org/apache/ojb/OJB-logging.properties
  
  Index: OJB-logging.properties
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/test/org/apache/ojb/OJB-logging.properties,v
  retrieving revision 1.1.2.6
  retrieving revision 1.1.2.7
  diff -u -r1.1.2.6 -r1.1.2.7
  --- OJB-logging.properties	16 Aug 2005 20:14:02 -0000	1.1.2.6
  +++ OJB-logging.properties	17 Nov 2005 01:34:20 -0000	1.1.2.7
  @@ -44,51 +44,55 @@
   # entities if not specified
   ROOT.LogLevel=ERROR
   #
  +# The boot log level used to initialize logging
  +BOOT.LogLevel=INFO
  +#
   # The Default Logger instance used within OJB
   DEFAULT.LogLevel=WARN
   #
   # PB-api and Kernel
  -#
  -# Logger for PersistenceBrokerImpl class
  -org.apache.ojb.broker.core.PersistenceBrokerImpl.LogLevel=WARN
  -# Logger for PersistenceBrokerFactory class PersistenceBrokerFactoryDefaultImpl
  +# -----------------
  +# Logger for PB-api base classes
   org.apache.ojb.broker.core.PersistenceBrokerFactoryDefaultImpl.LogLevel=WARN
  -# Logger for metadata root class
  -org.apache.ojb.broker.metadata.DescriptorRepository.LogLevel=WARN
  -# Logger for RepositoryXmlHandler, useful for debugging parsing of repository.xml!
  +org.apache.ojb.broker.core.PersistenceBrokerFactorySyncImpl.LogLevel=WARN
  +org.apache.ojb.broker.core.PersistenceBrokerImpl.LogLevel=WARN
  +#
  +# Logger for metadata classes, useful for debugging parsing of repository.xml!
   # persistence capable object metadata
  +org.apache.ojb.broker.metadata.DescriptorRepository.LogLevel=WARN
   org.apache.ojb.broker.metadata.RepositoryXmlHandler.LogLevel=WARN
  -# Logger for ConnectionDescriptorXmlHandler, useful for debugging parsing of repository.xml!
  -# connection specific metadata
   org.apache.ojb.broker.metadata.ConnectionDescriptorXmlHandler.LogLevel=WARN
  -# Logger for JdbcAccess, useful for debugging JDBC related problems
  +org.apache.ojb.broker.metadata.RepositoryPersistor.LogLevel=WARN
  +org.apache.ojb.broker.metadata.SuperReferenceDescriptor$SuperReferenceField.LogLevel=WARN
  +#
  +# Logger for jdbc access querying and object materialization, useful
  +# for debugging JDBC related problems
   org.apache.ojb.broker.accesslayer.JdbcAccessImpl.LogLevel=WARN
  -# Logger for RsIterator, useful for debugging problems with Object materialization
   org.apache.ojb.broker.accesslayer.RsIterator.LogLevel=WARN
  -# Logger for StatementsForClass, useful for debugging JDBC Connection related problems
   org.apache.ojb.broker.accesslayer.StatementsForClassImpl.LogLevel=WARN
  -# Logger for SqlGenerator, useful for debugging generation of SQL
   org.apache.ojb.broker.accesslayer.sql.SqlGeneratorDefaultImpl.LogLevel=WARN
  -# Logger for RepositoryPersistor
  -org.apache.ojb.broker.metadata.RepositoryPersistor.LogLevel=WARN
  -# Logger for ConnectionFactory base class
  -org.apache.ojb.broker.accesslayer.ConnectionFactoryAbstractImpl.LogLevel=WARN
  -# Logger for ConnectionManager
  +#
  +# Logger for connection handling
   org.apache.ojb.broker.accesslayer.ConnectionManagerImpl.LogLevel=WARN
  -# Logger for IndirectionHandler class
  -org.apache.ojb.broker.core.proxy.IndirectionHandler.LogLevel=WARN
  -# Logger for MaterializationCache
  -org.apache.ojb.broker.cache.MaterializationCache.LogLevel=WARN
  -# Logger for CacheDistributor
  +org.apache.ojb.broker.accesslayer.ConnectionFactoryAbstractImpl.LogLevel=WARN
  +org.apache.ojb.broker.accesslayer.ConnectionFactoryPooledImpl.LogLevel=WARN
  +org.apache.ojb.broker.accesslayer.ConnectionFactoryDBCPImpl.LogLevel=WARN
  +#
  +# Logger for object caching
   org.apache.ojb.broker.cache.CacheDistributor.LogLevel=WARN
  -# Logger for ObjectCacheDefaultImpl
  +org.apache.ojb.broker.cache.MaterializationCache.LogLevel=WARN
   org.apache.ojb.broker.cache.ObjectCacheDefaultImpl.LogLevel=WARN
  -# Logger for ObjectCacheTwoLevelImpl
   org.apache.ojb.broker.cache.ObjectCacheTwoLevelImpl.LogLevel=WARN
  +#
   # Logger for Oracle9i platform, useful for tracing failing Oracle-extensions or large LOB-support
   org.apache.ojb.broker.platforms.PlatformOracle9iImpl.LogLevel=WARN
  -# Metadata for super-inheritance
  -org.apache.ojb.broker.metadata.SuperReferenceDescriptor$SuperReferenceField.LogLevel=WARN
  +#
  +# Logger for proxy classes
  +org.apache.ojb.broker.core.proxy.IndirectionHandlerJDKImpl.LogLevel=WARN
  +org.apache.ojb.broker.core.proxy.IndirectionHandlerCGLIBImpl.LogLevel=WARN
  +org.apache.ojb.broker.core.proxy.ProxyFactoryJDKImpl.LogLevel=WARN
  +org.apache.ojb.broker.core.proxy.ProxyFactoryCGLIBImpl.LogLevel=WARN
  +#
   # OJB locking implementations
   org.apache.ojb.broker.locking.LockManagerInMemoryImpl.LogLevel=WARN
   org.apache.ojb.broker.locking.LockManagerCommonsImpl.LogLevel=WARN
  @@ -96,7 +100,7 @@
   org.apache.ojb.broker.locking.CommonsOJBLockManager.LogLevel=WARN
   #
   # odmg-api
  -#
  +# --------
   org.apache.ojb.odmg.TransactionImpl.LogLevel=WARN
   org.apache.ojb.odmg.J2EETransactionImpl.LogLevel=WARN
   org.apache.ojb.odmg.ImplementationImpl.LogLevel=WARN
  @@ -111,9 +115,9 @@
   # Special Logger categories used in test suite and tutorials
   #
   # Logger for the ODMG Implementation
  -ODMG.LogLevel=DEBUG
  +ODMG.LogLevel=WARN
   # Logger for the JDO RI Implementation
  -JDO.LogLevel=DEBUG
  +JDO.LogLevel=INFO
   # Logger for the performance tests
   performance.LogLevel=INFO
   # Logger for the soda api
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org


Mime
View raw message