Skip to content
shaymichaeli edited this page Apr 28, 2018 · 1 revision

log4j is an openware source for logging system in Java. We used in our project log4j version 1.2.17

Getting log4j:

Maven dependencies:

<dependency>
	<groupId>log4j</groupId>
	<artifactId>log4j</artifactId>
	<version>1.2.17</version>
</dependency>

log4j.properties file need to be places in the target/classes directory.

Logging Levels:

  • ERROR - Designates error events that might still allow the application to continue running. Usually will be logged in a catch block.

  • INFO - Designates informational messages that highlight the progress of the application at coarse-grained level.

  • DEBUG - Designates fine-grained informational events that are most useful to debug an application.

  • TRACE - Designates finer-grained informational events than the DEBUG.

External tutorial for log4j.

Clone this wiki locally