Java Logging using Log4j

  • Given below is a sample code used to log files using Log4j