78910111213
import jodd.log.impl.SimpleLoggerFactory; public class MyWebApplication2 extends WebApplication { public MyWebApplication2() { LoggerFactory.setLoggerFactory(new SimpleLoggerFactory(Logger.Level.DEBUG)); }
13141516171819
import javax.servlet.ServletContext; public class MyWebApplication extends PetiteWebApplication { public MyWebApplication() { LoggerFactory.setLoggerFactory(new SimpleLoggerFactory(Logger.Level.DEBUG)); }
891011121314
import jodd.madvoc.petite.PetiteWebApplication; public class MyWebApplication extends PetiteWebApplication { public MyWebApplication() { LoggerFactory.setLoggerFactory(new SimpleLoggerFactory(Logger.Level.DEBUG)); }
3435363738394041424344
System.setOut(out); } @Test public void testSimpleFactory() { LoggerFactory.setLoggerFactory(new SimpleLoggerFactory(Logger.Level.TRACE)); Logger log = LoggerFactory.getLogger("foo"); assertEquals("foo", log.getName()); PrintStream out = System.out;