If the logger is currently enabled for the INFO message level then the given message is forwarded to all the registered output Handler objects.
@param msg The string message (or a key in the message catalog)
5657585960616263
object.invokeMethod("testTree", null); } public void testLogging() { Logger log = Logger.getLogger(getClass().getName()); log.info("Logging using JDK 1.4 logging"); } }
7172737475767778798081
}}); for (int i = 0; i < docs.length; i++) { final File doc = docs[i]; final Logger logger = Logger.getLogger(getClass().getName()); logger.info("Processing file \" " + doc.toString() + "\"."); /* Execute the test task. */ task.runTest(doc); } }
3031323334353637383940
@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(); }
10841085108610871088108910901091109210931094
continue; } if (log.isLoggable(Level.INFO)) { log.info("Reading config " + systemId); } appConfigResources.add(getUnmarshaller(ectx).getFacesConfig(stream, systemId)); //getDispenser().feed(getUnmarshaller().getFacesConfig(stream, systemId)); stream.close();
384385386387388389390391392393394
{ 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) {
385386387388389390391392393394395
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());
390391392393394395396397398399400
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("***************************"); }
393394395396397398399400401
if(conversationEntry.getValue() instanceof DefaultConversation) { logger.info(conversationEntry.getValue().toString()); } } logger.info("\n\n*** conversations - end ***"); logger.info("***************************"); } }
394395396397398399400401
{ logger.info(conversationEntry.getValue().toString()); } } logger.info("\n\n*** conversations - end ***"); logger.info("***************************"); } }