log4j in web application (02 – w/ properties file)


How to use log4j in a java web application? How to use log4j.properties in a java web application? How to set log4j logging level in log4j.properties? How to use log4j for logging to the console? What is a servlet init method? How to use log4j for logging debug, info, warning, error, and fatal error messages? How to set logging level in log4j.properties? How to specify the format of the logged messages in log4j.properties? How to log to a file using log4j? What is a RollingFileAppender? What is MaxFileSize property in log4j? What is MaxBackupIndex property in log4j? What is the ConversionPattern property in log4j.properties? How to use log4j for logging to file and console at same time?

8 thoughts on “log4j in web application (02 – w/ properties file)

  1. Hi Zane Academy , First of all thank you for this video I was looking for this because I have an application to develop and I nned to implement log4j but the problem is that when I run it under JBOSS 7.1 and use fileappender it creates the log file but not writing into it .

  2. 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

Leave a Reply

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