1 64 65 package com.jcorporate.expresso.core.logging.tests; 66 67 import com.jcorporate.expresso.services.test.ExpressoTestCase; 68 import org.apache.log4j.Logger; 69 70 71 78 public class LogManagerTests 79 extends ExpressoTestCase { 80 81 87 public LogManagerTests(String name) 88 throws Exception { 89 super(name); 90 } 91 92 99 public void testLogging() 100 throws Exception { 101 102 Logger c = Logger.getLogger("com.jcorporate.expresso"); 103 c.info("Testing a Log to root output"); 104 c.error("This one though should actually print"); 105 c = Logger.getLogger("com.jcorporate.expresso.core"); 106 c.error("This is a test error message"); 107 c.info("This is a test info message"); 108 c.warn("This is a test warning"); 109 c = Logger.getLogger("com.jcorporate.expresso.services"); 110 c.error("This is a test error message"); 111 c.info("This is a test info message"); 112 c.warn("This is a test warning"); 113 114 } 115 } 116 | Popular Tags |