Package org.apache.commons.logging

Examples of org.apache.commons.logging.Log.debug()


                RequestPath requestPath = new RequestPath(app);

                String txname = req.getMethod() + ":" + req.getPath();
                Log eventLog = app.getEventLog();
                if (eventLog.isDebugEnabled()) {
                    eventLog.debug(txname + " starting");
                }

                int tries = 0;
                boolean done = false;
                Throwable error = null;
View Full Code Here


                        insertedNodes.add(node);
                    }

                    inserted++;
                    if (eventLog.isDebugEnabled()) {
                        eventLog.debug("inserted node: " + node.getPrototype() + "/" +
                                node.getID());
                    }
                } else if (nstate == Node.MODIFIED) {
                    // only mark DbMapping as dirty if updateNode returns true
                    if (nmgr.updateNode(nmgr.db, txn, node)) {
View Full Code Here

                        updatedNodes.add(node);
                    }

                    updated++;
                    if (eventLog.isDebugEnabled()) {
                        eventLog.debug("updated node: " + node.getPrototype() + "/" +
                                node.getID());
                    }
                } else if (nstate == Node.DELETED) {
                    nmgr.deleteNode(nmgr.db, txn, node);
                    dirtyDbMappings.add(node.getDbMapping());
View Full Code Here

                        deletedNodes.add(node);
                    }

                    deleted++;
                    if (eventLog.isDebugEnabled()) {
                        eventLog.debug("removed node: " + node.getPrototype() + "/" +
                                node.getID());
                    }
                }

                node.clearWriteLock();
View Full Code Here

    ByteArrayInputStream bis = new ByteArrayInputStream(baos.toByteArray());
    ois = new ObjectInputStream(bis);

    Log resuscitatedLog = (Log) ois.readObject();
    // tests that the "private transient Logger logger" field is non-null
    resuscitatedLog.debug("");
    resuscitatedLog.isDebugEnabled();
  }

  public void testSLF4JLog() throws Exception {
    JDK14LoggerFactory factory = new JDK14LoggerFactory();
View Full Code Here

   
    @Before("@annotation(es.internna.annotations.LogDebug)")
    public void beforeLog(JoinPoint jp) {
        Log log = this.getLog(jp);
        if (log.isDebugEnabled()) {
            log.debug(this.getMethod(jp));
            for (Object o : jp.getArgs())
            {
                if (o != null)
                {
                    log.debug("PARAMETER " + o.getClass().getSimpleName());
View Full Code Here

            log.debug(this.getMethod(jp));
            for (Object o : jp.getArgs())
            {
                if (o != null)
                {
                    log.debug("PARAMETER " + o.getClass().getSimpleName());
                    log.debug(o.toString());
                }
            }
        }
    }
View Full Code Here

            for (Object o : jp.getArgs())
            {
                if (o != null)
                {
                    log.debug("PARAMETER " + o.getClass().getSimpleName());
                    log.debug(o.toString());
                }
            }
        }
    }
   
View Full Code Here

        returning="retVal"
    )
    public void afterLog(JoinPoint jp, Object retVal)
    {
        Log log = this.getLog(jp);
        if (log.isDebugEnabled()) log.debug(retVal);
    }
}
View Full Code Here

    // check for user-defined port setting, if so override the conf
    if (commandLine != null && commandLine.hasOption("port")) {
      String val = commandLine.getOptionValue("port");
      servlet.getConfiguration()
          .setInt("hbase.rest.port", Integer.valueOf(val));
      LOG.debug("port set to " + val);
    }

    // check if server should only process GET requests, if so override the conf
    if (commandLine != null && commandLine.hasOption("readonly")) {
      servlet.getConfiguration().setBoolean("hbase.rest.readonly", true);
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.