How to configure log4j using log4j.properties

This article will cover all its options for your needed and show you how to configure log4j using file log4j.properties 1. Console Logging The log4j.properties file given below will set up logging on console. Line 1, we are initializing the root logger with log level INFO and giving it the name loggerId. In line 2, […]

Read More

Introduction to Log4j

Overview Apache Log4j is the logging framework for java applications. Using log4j, the developer can configure at run-time the verbosity of logs he needs without changing any log statement in code. How it works? The main objects/configs in the log4j framework that we work with are loggers, appenders, layouts, patterns,and log-levels. Object/Concept Description Logger Loggers […]

Read More