Spring

Spring - Logging with Log4J

Spring - Logging with Log4J

After installing log4J on your machine, on the off chance that you don't have it, you can download it from https://logging.apache.org/and just concentrate the compressed document in an envelope. We will utilize just log4j-x.y.z.jar in our venture. Then, let us have a functioning Eclipse IDE set up and find the accompanying ways to foster a Dynamic Form-based Web Application utilizing Spring Web Framework − 

  • Create a venture with SpringDemo and make a bundle demo under the src organizer in the made task. 
  • Add required Spring libraries utilizing Add External JARs choice as clarified in the Spring Hello World Example section. 
  • Add log4j library log4j-x.y.z.jar too in your undertaking utilizing Add External JARs. 
  • Create Java classes HelloWorld and MainApp under the demo bundle. 
  • Create Beans setup document Beans.xml under the src envelope. 
  • Create log4J setup document log4j.properties under the src envelope. 
  • The last advance is to make all the Java records and Bean Configuration documents and run the application.