Package org.apache.turbine.services.logging.jdbc

Examples of org.apache.turbine.services.logging.jdbc.JDBCAppender


        if (dbLogger == null || dbLogger.trim().equals(""))
        {
            return;
        }

        JDBCAppender appender = new JDBCAppender();
        appender.setOption(JDBCAppender.LOGGER_CLASS_OPTION, dbLogger);

        /*
         * This sucks, but we are stuck with setOption(String, String).
         * I want people to be able to specify their own db logger
         * implementation and the options without having to touch
         * anything else, but log4j doesn't really make it that easy.
         */
        //appender.setOption(JDBCAppender.LOGGER_OPTION, "pool:" + dbPool);
        appender.setLayout(layout);
        appender.activateOptions();
        logger.addAppender(appender);
    }
View Full Code Here


        if (dbLogger == null || dbLogger.trim().equals(""))
        {
            return;
        }

        JDBCAppender appender = new JDBCAppender();
        appender.setOption(JDBCAppender.LOGGER_CLASS_OPTION, dbLogger);

        /*
         * This sucks, but we are stuck with setOption(String, String).
         * I want people to be able to specify their own db logger
         * implementation and the options without having to touch
         * anything else, but log4j doesn't really make it that easy.
         */
        //appender.setOption(JDBCAppender.LOGGER_OPTION, "pool:" + dbPool);
        appender.setLayout(layout);
        appender.activateOptions();
        logger.addAppender(appender);
    }
View Full Code Here

        if (dbLogger == null || dbLogger.trim().equals(""))
        {
            return;
        }

        JDBCAppender appender = new JDBCAppender();
        appender.setOption(JDBCAppender.LOGGER_CLASS_OPTION, dbLogger);

        /*
         * This sucks, but we are stuck with setOption(String, String).
         * I want people to be able to specify their own db logger
         * implementation and the options without having to touch
         * anything else, but log4j doesn't really make it that easy.
         */
        //appender.setOption(JDBCAppender.LOGGER_OPTION, "pool:" + dbPool);
        appender.setLayout(layout);
        appender.activateOptions();
        logger.addAppender(appender);
    }
View Full Code Here

        if (dbLogger == null || dbLogger.trim().equals(""))
        {
            return;
        }

        JDBCAppender appender = new JDBCAppender();
        appender.setOption(JDBCAppender.LOGGER_CLASS_OPTION, dbLogger);

        /*
         * This sucks, but we are stuck with setOption(String, String).
         * I want people to be able to specify their own db logger
         * implementation and the options without having to touch
         * anything else, but log4j doesn't really make it that easy.
         */
        //appender.setOption(JDBCAppender.LOGGER_OPTION, "pool:" + dbPool);
        appender.setLayout(layout);
        appender.activateOptions();
        logger.addAppender(appender);
    }
View Full Code Here

        if (dbLogger == null || dbLogger.trim().equals(""))
        {
            return;
        }

        JDBCAppender appender = new JDBCAppender();
        appender.setOption(JDBCAppender.LOGGER_CLASS_OPTION, dbLogger);

        /*
         * This sucks, but we are stuck with setOption(String, String).
         * I want people to be able to specify their own db logger
         * implementation and the options without having to touch
         * anything else, but log4j doesn't really make it that easy.
         */
        //appender.setOption(JDBCAppender.LOGGER_OPTION, "pool:" + dbPool);
        appender.setLayout(layout);
        appender.activateOptions();
        logger.addAppender(appender);
    }
View Full Code Here

        if (dbLogger == null || dbLogger.trim().equals(""))
        {
            return;
        }

        JDBCAppender appender = new JDBCAppender();
        appender.setOption(JDBCAppender.LOGGER_CLASS_OPTION, dbLogger);

        /*
         * This sucks, but we are stuck with setOption(String, String).
         * I want people to be able to specify their own db logger
         * implementation and the options without having to touch
         * anything else, but log4j doesn't really make it that easy.
         */
        //appender.setOption(JDBCAppender.LOGGER_OPTION, "pool:" + dbPool);
        appender.setLayout(layout);
        appender.activateOptions();
        logger.addAppender(appender);
    }
View Full Code Here

TOP

Related Classes of org.apache.turbine.services.logging.jdbc.JDBCAppender

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.