log4j in a web application (01) – quick setup and usage tutorial


What is a log4j in a web application tutorial (w/ no properties file) ? Where to download log4j from? How to use log4j (w/ no properties file) for logging in a web application? How to use log4j from a java servlet? How to obtain a log4j root logger? How to configure log4j for usage (w/ no properties file) ? How to return html contents from a servlet? How to programmatically set log level when using log4j with no properties file? What is the difference between logging debug, info, warning, error, and fatal messages? How to change the number and types of statements logged (using log4j)? What is the default log4j log level?

5 thoughts on “log4j in a web application (01) – quick setup and usage tutorial

  1. Log4j Tutorial 03 (w/ xml configuration file) @ https://youtu.be/Fb1fRjkgT44

    log4j in web application (02 – w/ properties file) @ https://youtu.be/vpsJDa23PUA

    log4j in a web application (01) – quick setup and usage tutorial @ https://youtu.be/XtsecQtgmKU

  2. Hai I tried to do what you have shown in  the above video in netbeans IDE. but unfortunately when i have run the servlet i am getting Http status 500  error. can you help me with that.

Leave a Reply to WareN The Gamer Cancel reply

Your email address will not be published. Required fields are marked *