Log4j logging framework

Photo by Anthony Cantin on Unsplash

log4j is a reliable, fast and flexible logging framework (APIs) written in Java under the Apache. It offers direct logging information to a variety of destinations, such as a database, file, console, UNIX Syslog, etc.

Log4j has three main components:

  • loggers: capture logging information.
  • appenders: publish logging information to various preferred destinations.