Reply
New Contributor
Posts: 1
Registered: ‎06-11-2018

what is log4j

[ Edited ]

what is log4j. what is in log4j.properties.what type of logs log4j contains.

how to delete older logs for particular service(like i want to delete all logs except last 3 days)

 

Highlighted
Cloudera Employee AKR
Cloudera Employee
Posts: 28
Registered: ‎09-20-2018

Re: what is log4j

Hi,

 

log4j is a logging framework written in Java.The file log4j.properties is a configuration file which has some properties defined in the form of key-value pairs. This log4j will log all kind of logs that include custom log levels and standard log levels. Custom log levels can be configured based on our requirement either it can be configured in code level or configuration file.