Package ch.qos.logback.classic

Examples of ch.qos.logback.classic.Logger.info()


    OThread ot = new OThread();
    ot.start();
    Thread.sleep(OThread.WAIT_MILLIS-500);
    logger.info("About to interrupt");
    ot.interrupt();
    logger.info("After interrupt");
    logger.info("Leaving main");

  }
}
View Full Code Here


    ot.start();
    Thread.sleep(OThread.WAIT_MILLIS-500);
    logger.info("About to interrupt");
    ot.interrupt();
    logger.info("After interrupt");
    logger.info("Leaving main");

  }
}
View Full Code Here

    String timestamp = sdf.format(System.currentTimeMillis());

    sc.assertIsErrorFree();

    Logger root = lc.getLogger(Logger.ROOT_LOGGER_NAME);
    root.info("hello");
   
    ScaffoldingForRollingTests.existenceCheck(CoreTestConstants.OUTPUT_DIR_PREFIX+"TS_"+timestamp+"log.txt");
  }
}
View Full Code Here

    final Logger logger = loggerContext
            .getLogger("ch.qos.logback.classic.joran");
    final ListAppender listAppender = (ListAppender) logger.getAppender("A");
    assertEquals(0, listAppender.list.size());
    final String msg = "hello world";
    logger.info(msg);
    assertEquals(1, listAppender.list.size());
    System.clearProperty(propertyName);
  }

  @Test
View Full Code Here

    // We now put the last name
    MDC.put("last", "Parker");

    // The most beautiful two words in the English language according
    // to Dorothy Parker:
    logger.info("Check enclosed.");
    logger.debug("The most beautiful two words in English.");

    MDC.put("first", "Richard");
    MDC.put("last", "Nixon");
    logger.info("I am not a crook.");
View Full Code Here

    logger.info("Check enclosed.");
    logger.debug("The most beautiful two words in English.");

    MDC.put("first", "Richard");
    MDC.put("last", "Nixon");
    logger.info("I am not a crook.");
    logger.info("Attributed to the former US president. 17 Nov 1973.");
  }
}
View Full Code Here

    logger.debug("The most beautiful two words in English.");

    MDC.put("first", "Richard");
    MDC.put("last", "Nixon");
    logger.info("I am not a crook.");
    logger.info("Attributed to the former US president. 17 Nov 1973.");
  }
}
View Full Code Here

    } catch (final Throwable exception) {
      exceptions.trace (ExceptionResolution.Ignored, exception);
      logger.error ("failed creating component; ignoring!", exception);
      throw (new Error (exception));
    }
    logger.info ("started: {}", componentIdentifier.get ());
    main.join ();
  }
 
  public static final long defaultCreateDelay = 1000;
}
View Full Code Here

     
//    outputStreamAppender.setLevel ( level );
     
      rootLogger.addAppender ( consoleAppender );
     
      rootLogger.info ( "Logging level set to " + LEVEL );
     
//      logger.debug ( "test" );
//     
//      logger.debug ( logger.getClass ( ).getName ( ) );
     
View Full Code Here

    // We now put the last name
    MDC.put("last", "Parker");

    // The most beautiful two words in the English language according
    // to Dorothy Parker:
    logger.info("Check enclosed.");
    logger.debug("The most beautiful two words in English.");

    MDC.put("first", "Richard");
    MDC.put("last", "Nixon");
    logger.info("I am not a crook.");
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.