Examples of warn()


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

        subcontext.put("servlet-context", this.servletContext);
        if (this.servletContextPath == null) {
            File logSCDir = new File(this.workDir, "log");
            logSCDir.mkdirs();
            if (logger.isWarnEnabled()) {
                logger.warn("Setting servlet-context for LogKit to " + logSCDir);
            }
            subcontext.put("context-root", logSCDir.toString());
        } else {
            subcontext.put("context-root", this.servletContextPath);
        }
View Full Code Here

Examples of org.apache.log4j.Category.warn()

    log4jLogger.error("msg" +(n++));
    log4jLogger.fatal("msg" +(n++));
   
    log4jCategory.debug("msg" +(n++));
    log4jCategory.info("msg" +(n++));
    log4jCategory.warn("msg" +(n++));
    log4jCategory.error("msg" +(n++));
    log4jCategory.fatal("msg" +(n++));
    assertEquals(n, listHandler.list.size());
   
View Full Code Here

Examples of org.apache.log4j.Logger.warn()

    int n = 0;

    log4jLogger.trace("msg" +(n++));
    log4jLogger.debug("msg" +(n++));
    log4jLogger.info("msg" +(n++));
    log4jLogger.warn("msg" +(n++));
    log4jLogger.error("msg" +(n++));
    log4jLogger.fatal("msg" +(n++));
   
    log4jCategory.debug("msg" +(n++));
    log4jCategory.info("msg" +(n++));
View Full Code Here

Examples of org.apache.log4j.Logger.warn()

//    myLogger.setLevel(Level.WARN);
    myLogger.setLevel(Level.INFO);
   
    // log a fatal event
    myLogger.info("info: I have died of thirst");
    myLogger.warn("warn: I have died of thirst");
    myLogger.error("error: I have died of thirst");
    myLogger.fatal("fatal: I have died of thirst");

  }
}
View Full Code Here

Examples of org.apache.log4j.Logger.warn()

  void common(String msg) {
    Logger logger = Logger.getLogger("test");
    logger.trace(msg);
    logger.debug(msg);
    logger.info(msg);
    logger.warn(msg);
    logger.error(msg);
    logger.fatal(msg);
  }

  public static Test suite() {
View Full Code Here

Examples of org.apache.log4j.Logger.warn()

    BasicConfigurator.configure(new NTEventLogAppender());
    Logger logger = Logger.getLogger("org.apache.log4j.nt.NTEventLogAppenderTest");
    int i  = 0;
    logger.debug( "Message " + i++);
    logger.info( "Message " + i++);
    logger.warn( "Message " + i++);
    logger.error( "Message " + i++);
    logger.log(Level.FATAL, "Message " + i++);
    logger.debug("Message " + i++,  new Exception("Just testing."));
  }
}
View Full Code Here

Examples of org.apache.log4j.Logger.warn()

      boolean s = r1.shutdown(2000);
      Assert.assertTrue(s);

      DbusEventsTotalStats stats2 = relay2.getInboundEventStatisticsCollector().getTotalStats();
      long firstGenChainWindows = stats2.getNumSysEvents();
      log.warn("relay2:  numDataEvents=" + stats2.getNumDataEvents()
          + " numWindows=" + firstGenChainWindows + " minScn="
          + stats2.getMinScn() + " maxScn=" + stats2.getMaxScn());

      Thread.sleep(2*1000);

 
View Full Code Here

Examples of org.apache.logging.log4j.Logger.warn()

        long start = System.nanoTime();

        for(int i = 0; i < 1000; i++) {
            if (i % 25 == 0) {
                logger.warn("This is an exception message.", exception);
            } else {
                logger.info("This is an info message.");
            }
        }
View Full Code Here

Examples of org.apache.maven.plugin.logging.Log.warn()

                remoteFile.put( downloadedRepositoryXml, repositoryName );
            }
        }
        catch ( Exception e )
        {
            log.warn( "Exception while updating remote OBR: " + e.getLocalizedMessage(), e );
        }
        finally
        {
            // ======== UNLOCK REMOTE OBR ========
            log.info( "UNLOCK " + remoteFile + '/' + repositoryName );
View Full Code Here

Examples of org.apache.mina.common.IoSessionLogger.warn()

        if (request == null) {
            // A response message without request. Swallow the event because
            // the response might have arrived too late.
            IoSessionLogger logger = IoSessionLogger.getLogger(session, getClass());
            if (logger.isWarnEnabled()) {
                logger.warn("Unknown request ID '" + requestId
                        + "' for the response message. Timed out already?: "
                        + message);
            }
        } else {
            // Found a matching request.
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.