Technologies - Log4J - Plugging Log4j to Code

 

Steps to use log4j in your Java application are as follows:

  1. Download latest log4j distribution.
  2. Add log4j’s jar library into your program’s Build path.
  3. Create log4j’s configuration.
  4. Initialize log4j with the configuration.
  5. Create a logger.
  6. Put logging statements into your code. 

Comments

Popular posts from this blog

QA's approach 2 Java - Understanding Static context

Selenium 4 absolute beginners - How to create Batch execution file

Technologies - Log4J - Create Log4j Configuration File - Where ? How ? What ?