Package ch.qos.logback.classic

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


            exceptions.trace (ExceptionResolution.Ignored, exception);
            logger.error ("failed stopping component; ignoring!", exception);
          }
      }
    });
    logger.debug ("starting main...");
    final Thread main = Threading.createDaemonThread (threading, BasicComponentGenericLauncher.class, "main", run);
    main.start ();
    Threading.sleep (BasicComponentGenericLauncher.defaultCreateDelay);
    logger.debug ("creating component...");
    try {
View Full Code Here


    });
    logger.debug ("starting main...");
    final Thread main = Threading.createDaemonThread (threading, BasicComponentGenericLauncher.class, "main", run);
    main.start ();
    Threading.sleep (BasicComponentGenericLauncher.defaultCreateDelay);
    logger.debug ("creating component...");
    try {
      final URL controllerCreateUrl = new URL (controllerBaseUrl, String.format ("/v1/processes/create?%s", Joiner.on ("&").join (Arrays.asList (controllerCreateUrlArguments))));
      logger.debug ("{}", controllerCreateUrl.toString ());
      try {
        final InputStream createStream = controllerCreateUrl.openStream ();
View Full Code Here

    main.start ();
    Threading.sleep (BasicComponentGenericLauncher.defaultCreateDelay);
    logger.debug ("creating component...");
    try {
      final URL controllerCreateUrl = new URL (controllerBaseUrl, String.format ("/v1/processes/create?%s", Joiner.on ("&").join (Arrays.asList (controllerCreateUrlArguments))));
      logger.debug ("{}", controllerCreateUrl.toString ());
      try {
        final InputStream createStream = controllerCreateUrl.openStream ();
        final String createResponse = new String (ByteStreams.toByteArray (createStream), Charset.forName ("UTF-8"));
        try {
          final Map<?, ?> createResponseMap = (Map<?, ?>) DefaultJsonCoder.defaultInstance.decodeFromString (createResponse);
View Full Code Here

    appender.setLayout(layout);
    appender.start();
   
    rootLogger.addAppender(appender);

    rootLogger.debug("Message 1");
    rootLogger.warn("Message 2");
  }
}
View Full Code Here

      String s = reader.readLine();

      if (s.equals("q")) {
        break;
      } else {
        logger.debug(s);
      }
    }
  }
}
View Full Code Here

    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.");
    logger.info("Attributed to the former US president. 17 Nov 1973.");
View Full Code Here

    Logger root = lc.getLogger(LoggerContext.ROOT_NAME);
    root.addAppender(writerAppender);

    Logger logger = lc.getLogger(ExitWoes2.class);

    logger.debug("Hello world.");
   
    lc.shutdownAndReset();
   
    StatusPrinter.print(lc);
  }
View Full Code Here

    Logger root = lc.getLogger(LoggerContext.ROOT_NAME);
    root.addAppender(writerAppender);

    Logger logger = lc.getLogger(ExitWoes1.class);

    logger.debug("Hello world.");
  }
}
View Full Code Here

    Logger root = lc.getLogger(LoggerContext.ROOT_NAME);
    root.addAppender(writerAppender);

    Logger logger = lc.getLogger(ExitWoes2.class);

    logger.debug("Hello world.");
   
    lc.stop();
   
    StatusPrinter.print(lc);
  }
View Full Code Here

    Logger root = lc.getLogger(LoggerContext.ROOT_NAME);
    root.addAppender(writerAppender);

    Logger logger = lc.getLogger(ExitWoes1.class);

    logger.debug("Hello world.");
  }
}
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.