Skip to content

Publish and maintain the Apache Log4j 1.2 Windows NTEventLogAppender code and DLL

License

Notifications You must be signed in to change notification settings

garydgregory/log4j1-ntdll

Repository files navigation

log4j1-ntdll

This project publishes and maintains the Apache Log4j 1.2 Windows NTEventLogAppender code and DLL.

While the Log4j 1 branch has reached end-of-life, this project seeks to maintain the NTEventLogAppender code and DLL until the transition to Log4j 2 is complete for the projects I work on.

In addition, the Log4j 1 project never published the DLL files to Maven Central. This project publishes the NTEventLogAppender DLLs to Maven Central under the com.garygregory.log4j1 group ID.

The project provides the following files:

  • NTEventLogAppender.amd64_x86.dll
  • NTEventLogAppender.amd64.dll
  • NTEventLogAppender.x86_amd64.dll
  • NTEventLogAppender.x86.dll

Integrating a DLL into your application

By default build tools like Apache Maven include the artifact version into the file name it downloads. Log4j 1 on the other hand, MUST not have the version in the file name. You Maven build must handle this discrepancy.

If you use Apache Ivy, you have control over file names and can skip using the version in the file name Ivy creates.

NTEventLogAppender.amd64_x86.dll

<dependency>
  <groupId>com.garygregory.log4j1</groupId>
  <artifactId>NTEventLogAppender.amd64_x86</artifactId>
  <version>1.0</version>
  <type>dll</type>
</dependency>

NTEventLogAppender.amd64.dll

<dependency>
  <groupId>com.garygregory.log4j1</groupId>
  <artifactId>NTEventLogAppender.amd64</artifactId>
  <version>1.0</version>
  <type>dll</type>
</dependency>

NTEventLogAppender.x86_amd64.dll

<dependency>
  <groupId>com.garygregory.log4j1</groupId>
  <artifactId>NTEventLogAppender.x86_amd64</artifactId>
  <version>1.0</version>
  <type>dll</type>
</dependency>

NTEventLogAppender.x86.dll

<dependency>
  <groupId>com.garygregory.log4j1</groupId>
  <artifactId>NTEventLogAppender.x86</artifactId>
  <version>1.0</version>
  <type>dll</type>
</dependency>

Release History

2016-10-16 Version 1.0.0-SNAPSHOT

First SNAPSHOT builds.

TODO ### 2016-10-dd Version 1.0

File SHA1 MD5
NTEventLogAppender.amd64.dll 4bef2c1c958d4c29c14c647508a9c023c28039c2 80aa15b85848fee0764a7a24d4bc5a66
NTEventLogAppender.amd64_x86.dll a62d1a97d05847f3586017780b45267a0652b70b fb621f9cbc30ac331cc39d6e44bdd00e
NTEventLogAppender.x86.dll 42d73a6374fb37b17827551e873e1d33eb43140d c70463dca62c74dfe294574769b843ac
NTEventLogAppender.x86_amd64.dll 40b0fe058f20c241db52bc5a32b55d142ccda4e0 0d14689c37bffa9a71ecee3e3ebb3350

Building DLLs

The current build uses Microsoft tools. A patch to build with MinGW would be appreciated.

The msbuild-all script builds the DLLs.

To install files you've built locally, run install-all.

Deploying a snapshot

Run deploy-all-snapshots.

Releasing

  • Edit pom.xml and remove SNAPSHOT.
  • Edit version.txt (never contains a SNAPSHOT, only a plain version like 1.0.0).
  • Run mvn apache-rat:check and check the results.
  • Run ms-build-all and check the results.
  • Run install-all-snapshot and check the results.
  • Run install-all-staging and check the results.
  • Run deploy-all-snapshot and check the results.
  • Run deploy-all-staging and check the results.
  • Release from Nexus
  • Edit pom.xml and add SNAPSHOT.

TODO

  • Compiling Desktop applications for the ARM platform is not supported.

-EOF-

About

Publish and maintain the Apache Log4j 1.2 Windows NTEventLogAppender code and DLL

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published