Technologies - Log4J - Initializing Logging

Initializing Logging mechanism using Log4J 

package com.SeleniumPractise;

import org.apache.logging.log4j.*;

public class Demo {

private static Logger log = LogManager.getLogger(Demo.class.getName());

public static void main(String[] args) {

log.debug("Logging a debug message");

log.info("Logging info level");

log.error("Logging Error message");

log.fatal("Fatal error message");

}


}


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 ?