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