Learning The "J"

Home » JAVA Learning » JAVA Core » Log4J

Category Archives: Log4J



Apache log4j is a Java-based logging utility. It was originally written by Ceki Gülcü and is now a project of the Apache Software Foundation. log4j is one of several Java logging frameworks.

package logtest;

public class LogTest {

     * @param args the command line arguments
    public static ActivityLog log = new ActivityLog(LogTest.class);
    public static void main(String[] args) {           
       log.logToFile(" Problem   ",ActivityLog.LogLevel.WARN);