Package java.util.logging

Examples of java.util.logging.Logger.info()


  public static void deleteContentsOf(File dir) throws IOException {
    File[] files = getFiles(dir);
    Logger log = getLogger();
    if (files.length == 0) {
      log.info("No files in " + dir);
    }
    log.info("Deleting " + files.length + " files in " + dir);
    for (File f : files) {
      log.fine("deleting '" + f + "'");
      f.delete();
View Full Code Here


    File[] files = getFiles(dir);
    Logger log = getLogger();
    if (files.length == 0) {
      log.info("No files in " + dir);
    }
    log.info("Deleting " + files.length + " files in " + dir);
    for (File f : files) {
      log.fine("deleting '" + f + "'");
      f.delete();

    }
View Full Code Here

    for (File f : files) {
      log.fine("deleting '" + f + "'");
      f.delete();

    }
    log.info("Done.");
    files = getFiles(dir);
    if (files.length != 0) {
      throw new IOException(
          "Could not delete all files! " + files[0] + " is still there!");
    }
View Full Code Here

    @Test
    public void testAOP() {
        Logger log = Logger.getLogger(getClass().getName());
        System.out.println("doSomething()");
        log.info("Hello, Log");
    }

    public static void main(String[] args) {
        new TracingTestCase().testAOP();
    }
View Full Code Here

        {
            return;
        }

        Logger logger = Logger.getLogger(JsfWindowContext.class.getName());
        logger.info(label);
        logger.info("\n*** conversations - start ***");
        for(Map.Entry<ConversationKey, EditableConversation> conversationEntry : this.groupedConversations.entrySet())
        {
            if(conversationEntry.getValue() instanceof DefaultConversation)
            {
View Full Code Here

            return;
        }

        Logger logger = Logger.getLogger(JsfWindowContext.class.getName());
        logger.info(label);
        logger.info("\n*** conversations - start ***");
        for(Map.Entry<ConversationKey, EditableConversation> conversationEntry : this.groupedConversations.entrySet())
        {
            if(conversationEntry.getValue() instanceof DefaultConversation)
            {
                logger.info(conversationEntry.getValue().toString());
View Full Code Here

        logger.info("\n*** conversations - start ***");
        for(Map.Entry<ConversationKey, EditableConversation> conversationEntry : this.groupedConversations.entrySet())
        {
            if(conversationEntry.getValue() instanceof DefaultConversation)
            {
                logger.info(conversationEntry.getValue().toString());
            }
        }
        logger.info("\n\n*** conversations - end ***");
        logger.info("***************************");
    }
View Full Code Here

            if(conversationEntry.getValue() instanceof DefaultConversation)
            {
                logger.info(conversationEntry.getValue().toString());
            }
        }
        logger.info("\n\n*** conversations - end ***");
        logger.info("***************************");
    }
}
View Full Code Here

            {
                logger.info(conversationEntry.getValue().toString());
            }
        }
        logger.info("\n\n*** conversations - end ***");
        logger.info("***************************");
    }
}
View Full Code Here

      public void publish(LogRecord record) {
        buffer.append("Not disabled!");
      }
    });
    level = DisableLogging.disableLogging();
    logger.info("Hello!");
    Assert.assertEquals("", buffer.toString());
    DisableLogging.enableLogging(level);

    // restore the original handlers
    topLogger.removeHandler(bufferhandler);
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.