Client-side logging libraries

Log4j is a popular logging framework for Java. There are several ports for other languages, such as:

  • Log4c for the C language
  • Log4js for the JavaScript language
  • Apache log4net, a port to the Microsoft .NET framework

Several other ports exist, with many different logging frameworks that share many of their concepts.

Since there are many logging frameworks for the Java platform alone, there are also some wrapper logging frameworks, such as Apache Commons Logging or Simple Logging Facadefor Java (SLF4J). These are intended to allow you to use a single interface and swap out the underlying logging framework implementation if needed.

Logback is meant to be the successor of Log4j and is compatible with the ELK stack. ...

Get Practical DevOps - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.