Samples JDK
FooBean.java
1 package com.freemindcafe.apache.log4j.sample2;
2 
3 import org.apache.log4j.Logger;
4 
5 public class FooBean {
6  private static final Logger logger = Logger.getLogger("c");
7 
8  public void sayHello() {
9  logger.debug("Hello there from FooBean class!");
10  logger.info("Hello there from FooBean class!");
11  }
12 }