Log4j – Preparation

Background

Now that we have a couple of Java posts out of the way, let us prepare our machine for log4J.

Lineage

  1. Java:- JDK – Installing Java JDK on MS-Windows
    Link
  2. HelloWorld In Java
    Link

 

Log4J

Artifacts

Link

Images

Tabulated

Type Distribution Mirrors Link
Binary
Apache Log4j 2 binary (tar.gz) apache-log4j-2.17.1-bin.tar.gz Link
Apache Log4j 2 binary (zip) apache-log4j-2.17.1-bin.zip Link
Source Code
Apache Log4j 2 source (tar.gz) apache-log4j-2.17.1-src.tar.gz Link
Apache Log4j 2 source (zip) apache-log4j-2.17.1-src.zip Link

Choice of Artifact

  1. OS Platform
    • If I am on Linux, I will likely go with tar.gz
    • On the other hand, If I am on MS Windows, I will likely go with zip
  2. Binary Versus Source Code
    • I am not with looking through log4J Source Code, and so miss me on the Source Code

Downloaded Artifact

Downloaded Artifact

Extract Artifact

Using MS Windows Explorer, extracted the files.

Images

 

Tabulated

Type Filename Description Link
Core
log4j-api-2.0
log4j-core-2.0
Compatibility
log4j-1.2-api-2.*.*.jar The Log4j 1.2 Bridge allows applications coded to use Log4j 1.2 API to use Log4j 2 instead. Link
Application Server ( Apache Tomcat & Eclipse Jetty )
log4j-appserver The Application Server module provides support for integrating Log4j into various Java Application Servers. Link
Log4j to SLF4J Adapter
log4j-to-slf4j-2.x.jar The Log4j 2 to SLF4J Adapter allows applications coded to the Log4j 2 API to be routed to SLF4J Link
slf4j Implementations
log4j-slf4j-impl-2.17.1.jar
log4j-slf4j18-impl-2.17.1.jar
Web Servlet Containers
log4j-web-2.*.*.jar Web Servlet Containers Link

Link

Database
Database – CoachDB
log4j-couchdb-2.*.*.jar Couch Database.  Apache CouchDB is supported through the LightCouch driver. Link
Database – MongoDB3
log4j-mongodb3-2.*.*.jar MongoDB is supported through the Java MongoDB Driver. Link
Database – MongoDB4
log4j-mongodb4-2.*.*.jar MongoDB is supported through the Java MongoDB Driver. Link
Database – Cassandra
log4j-cassandra-2.*.*.jar The Cassandra Appender allows applications to send events to Apache Cassandra repositories. Link
Database Persistency
Database Persistency – Apache Commons DBCP
log4j-jdbc-dbcp2-2.*.*.jar Database Persistency achieved through Apache Commons DBCP. Link
Docker
Docker
log4j-docker-2.*.*.jar Log4j supports Docker by providing a Lookup to retrieve container information.
Log4j Docker requires Log4j Core, Log4j API, and a minimum of Java 8.
Link

 

Summary

Apache log4J is a powerful and extensible Java logging framework.

 

Referenced Work

  1. apache.org
    • Logging Services
      • Application Server Integration
        Link
      • Using Log4j 2 in Web Applications
        Link

2 thoughts on “Log4j – Preparation

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s