// Collection of code snippets by Arne Vajhøj 
// (from articles on eksperten.dk / vajhoej.dk written sometime between 2004 and now) 
import java.util.logging.*;

public class Log4 {
   private final static Logger logger = Logger.getLogger("Log4");
   public static int fac(int n) {
      int res;
      if (n <= 1) {
         res = 1;
      } else {
         res = n * fac(n - 1);
      }
      logger.fine("fac : n = " + n + " res = " + res);
      return res;
   }
   public static void main(String[] args) {
      logger.info("Start");
      System.out.println(fac(50));
      logger.info("End");
   }
}
