1 5 package com.tonbeller.jpivot.tags; 6 7 import org.apache.log4j.Logger; 8 9 import com.tonbeller.jpivot.tags.StateManager.State; 10 11 public class Log4jStateLogger implements StateLogger { 12 private static final Logger logger = Logger.getLogger(Log4jStateLogger.class); 13 14 public void initialize(State s) { 15 logger.info("initialize " + s.getName()); 16 } 17 18 public void destroy(State s) { 19 logger.info("destroy " + s.getName()); 20 } 21 22 public void show(State s) { 23 logger.info("show " + s.getName()); 24 } 25 26 public void hide(State s) { 27 logger.info("hide " + s.getName()); 28 } 29 30 public void error(String msg) { 31 logger.error(msg); 32 } 33 34 } 35 | Popular Tags |