Log4j Catalog JPA DAO

Apache Log4j Audit

License

License

Categories

Categories

Logging Application Layer Libs
GroupId

GroupId

org.apache.logging.log4j
ArtifactId

ArtifactId

log4j-catalog-jpa
Last Version

Last Version

1.0.1
Release Date

Release Date

Type

Type

jar
Description

Description

Log4j Catalog JPA DAO
Apache Log4j Audit
Project URL

Project URL

http://maven.apache.org
Project Organization

Project Organization

Apache Software Foundation

Download log4j-catalog-jpa

How to add to project

<!-- https://jarcasting.com/artifacts/org.apache.logging.log4j/log4j-catalog-jpa/ -->
<dependency>
    <groupId>org.apache.logging.log4j</groupId>
    <artifactId>log4j-catalog-jpa</artifactId>
    <version>1.0.1</version>
</dependency>
// https://jarcasting.com/artifacts/org.apache.logging.log4j/log4j-catalog-jpa/
implementation 'org.apache.logging.log4j:log4j-catalog-jpa:1.0.1'
// https://jarcasting.com/artifacts/org.apache.logging.log4j/log4j-catalog-jpa/
implementation ("org.apache.logging.log4j:log4j-catalog-jpa:1.0.1")
'org.apache.logging.log4j:log4j-catalog-jpa:jar:1.0.1'
<dependency org="org.apache.logging.log4j" name="log4j-catalog-jpa" rev="1.0.1">
  <artifact name="log4j-catalog-jpa" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.apache.logging.log4j', module='log4j-catalog-jpa', version='1.0.1')
)
libraryDependencies += "org.apache.logging.log4j" % "log4j-catalog-jpa" % "1.0.1"
[org.apache.logging.log4j/log4j-catalog-jpa "1.0.1"]

Dependencies

compile (23)

Group / Artifact Type Version
commons-logging : commons-logging jar 1.1.3
org.apache.commons : commons-lang3 jar 3.4
org.apache.logging.log4j : log4j-catalog-api jar 1.0.1
org.springframework : spring-context jar
org.springframework : spring-context-support jar
org.springframework : spring-beans jar
org.springframework : spring-core jar
org.springframework : spring-test jar
org.springframework.data : spring-data-jpa jar
com.fasterxml.jackson.core : jackson-core jar 2.8.5
com.fasterxml.jackson.core : jackson-databind jar 2.8.5
com.mchange : c3p0 jar 0.9.5.2
com.mchange : mchange-commons-java jar 0.2.11
org.hsqldb : hsqldb jar 2.3.4
org.modelmapper : modelmapper jar 0.7.5
org.modelmapper.extensions : modelmapper-spring jar 0.7.5
org.modelmapper.extensions : modelmapper-jackson jar 0.7.5
org.apache.logging.log4j : log4j-api jar 2.10.0
org.apache.logging.log4j : log4j-core jar 2.10.0
org.apache.logging.log4j : log4j-slf4j-impl jar 2.10.0
com.google.jimfs : jimfs jar 1.1
org.eclipse.jgit : org.eclipse.jgit jar 4.7.0.201704051617-r
org.postgresql : postgresql Optional jar 42.2.0

provided (1)

Group / Artifact Type Version
javax : javaee-api jar 7.0

test (2)

Group / Artifact Type Version
junit : junit jar 4.12
org.apache.logging.log4j : log4j-core test-jar 2.10.0

Project Modules

There are no modules declared in this project.

Apache Log4j Audit

Log4j-Audit provides a framework for defining audit events and then logging them using Log4j. The framework focuses on defining the events and providing an easy mechanism for applications to log them, allowing products to provide consistency and validity to the events that are logged. It does not focus on how the log events are written to a data store. Log4j itself provides many options for that.

The expected process is that business analysts or product managers will be managing the catalog, defining the events and attributes so that consumers of the events will have a consistent experience. For example, instead of one event using an attribute with a name of "custAddr" and another using a name of "customerAddress", both would use the same name for attributes that have the same meaning.

Once the catalog is modified in the web application it is saved as JSON to a git repository. It is expected that a continuous integration system would notice the change and start a build of that project. The build would use the Log4j Audit Maven Plugin to generate Java interfaces that Java developers would use to implement the audit logging within the application. Non-Java applications would call the Audit Service by sending an appropriate Data Transfer Object in JSON form and the Audit Service would perform the same validation that logging via the Java Interface would.

Log4j Audit is not entirely usable by itself. Users of Log4j Audit must have a Git project that contains the JSON catalog which will contain the Java Interfaces for the events defined in the catalog after a build is performed. They will need to modify the Audit Service provided with Log4j Audit to include the JSON catalog (by including the just discussed Git project as a dependency) and configuring the Audit Service as desired. The Log4j Audit Samples is a sample project that illustrates how to perform these tasks.

Pull Requests on Github

By sending a pull request you grant the Apache Software Foundation sufficient rights to use and release the submitted work under the Apache license. You grant the same rights (copyright license, patent license, etc.) to the Apache Software Foundation as if you have signed a Contributor License Agreement. For contributions that are judged to be non-trivial, you will be asked to actually signing a Contributor License Agreement.

Packages

Log4j Audit

The Log4j Audit module contains the Log4j Audit API that Java application leverage to perform audit logging, the Log4j Audit Maven Plugin that generates Java Interfaces from the catalog, and the Audit Service that non-Java applications interact with to perform audit logging. The Audit service will also provide access to define dynamic catalog entries for systems that allow new custom objects and attributes to be created while the application is executing and need to audit when actions are taken against these objects.

Log4j Catalog

The Log4j Catalog module contains the API for working with the catalog, a module for persisting the catalog using the Java Persistence Architecture (JPA), a module for reading and writing the JSON version of the catalog to a remote GIT repository, and a module that provides a web application that can edit the various components of the catalog.

Requirements

Log4j Audit requires a minimum of Java 8 and Log4j API and Core 2.9.

Building From Source

Log4j Audit requires Apache Maven 3.x. To build from source and install to your local Maven repository, execute the following:

mvn clean install

License

Apache Log4j Audit is distributed under the Apache License, version 2.0.

org.apache.logging.log4j

The Apache Software Foundation

Versions

Version
1.0.1
1.0.0