Package org.apache.log

Examples of org.apache.log.Logger.debug()


     */
    public void load(ServletContext servletContext) throws SQLException,
            IOException, SystemException {
        Logger log=JGossipLog.getInstance().getAppLogger();
        if (log.isDebugEnabled()) {
            log.debug("try to load app.properties");
        }

        InputStream is = servletContext
                .getResourceAsStream("/WEB-INF/classes/org/jresearch/gossip/resources/app.properties");

View Full Code Here


            throw e1;
        }

        if (log.isDebugEnabled()) {
            log.debug("try to load configuration from Data Base");
        }

        Connection conn = this.dataSource.getConnection();

        PreparedStatement st = conn.prepareStatement(dbDriver.getQueries()
View Full Code Here

        try {
            rs = (ResultSet) st.executeQuery();

            while (rs.next()) {
                if (log.isDebugEnabled()) {
                    log.debug(rs.getString("c_name") + " is loaded");
                }

                this.props.put(rs.getString("c_name"), rs.getString("c_value"));
            }
View Full Code Here

                    if (actionConfig instanceof StrutsPermissionMapping) {

                        StrutsPermissionMapping amp = (StrutsPermissionMapping) actionConfig;
                        actionMappingMap.put(amp.getPath(), amp);
                        if (log.isDebugEnabled()) {
                            log.debug(amp.getPath()
                                    + " permission mapping is loaded");
                        }
                    }
                }
            } else {
View Full Code Here

                break;
            case LogLevel.INFO_INT:
                logger.info(message, t);
                break;
            default:
                logger.debug(message, t);
            }
        } catch (SystemException e) {
            e.printStackTrace();
        }
    }
View Full Code Here

                break;
            case LogLevel.INFO_INT:
                logger.info(message);
                break;
            default:
                logger.debug(message);
            }
        } catch (SystemException e) {
            e.printStackTrace();
        }
    }
View Full Code Here

        public void testAdd1() throws Exception {
            Logger log = LoggingManager.getLoggerForClass();
            Collection<String> treePath = Arrays.asList(new String[] { "1", "2", "3", "4" });
            HashTree tree = new HashTree();
            log.debug("treePath = " + treePath);
            tree.add(treePath, "value");
            log.debug("Now treePath = " + treePath);
            log.debug(tree.toString());
            assertEquals(1, tree.list(treePath).size());
            assertEquals("value", tree.getArray(treePath)[0]);
View Full Code Here

            Logger log = LoggingManager.getLoggerForClass();
            Collection<String> treePath = Arrays.asList(new String[] { "1", "2", "3", "4" });
            HashTree tree = new HashTree();
            log.debug("treePath = " + treePath);
            tree.add(treePath, "value");
            log.debug("Now treePath = " + treePath);
            log.debug(tree.toString());
            assertEquals(1, tree.list(treePath).size());
            assertEquals("value", tree.getArray(treePath)[0]);
        }
View Full Code Here

            Collection<String> treePath = Arrays.asList(new String[] { "1", "2", "3", "4" });
            HashTree tree = new HashTree();
            log.debug("treePath = " + treePath);
            tree.add(treePath, "value");
            log.debug("Now treePath = " + treePath);
            log.debug(tree.toString());
            assertEquals(1, tree.list(treePath).size());
            assertEquals("value", tree.getArray(treePath)[0]);
        }

        public void testEqualsAndHashCode1() throws Exception {
View Full Code Here

        public void testAdd1() throws Exception {
            Logger log = LoggingManager.getLoggerForClass();
            Collection treePath = Arrays.asList(new String[] { "1", "2", "3", "4" });
            HashTree tree = new HashTree();
            log.debug("treePath = " + treePath);
            tree.add(treePath, "value");
            log.debug("Now treePath = " + treePath);
            log.debug(tree.toString());
            assertEquals(1, tree.list(treePath).size());
            assertEquals("value", tree.getArray(treePath)[0]);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.