https://github.com/dblock/log4jna
Log4jna is a library of native appenders for log4j.
https://github.com/dblock/log4jna
Last synced: 9 months ago
JSON representation
Log4jna is a library of native appenders for log4j.
- Host: GitHub
- URL: https://github.com/dblock/log4jna
- Owner: dblock
- License: apache-2.0
- Created: 2011-10-11T11:42:04.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2024-12-08T00:25:24.000Z (over 1 year ago)
- Last Synced: 2024-12-28T06:20:51.084Z (over 1 year ago)
- Language: Java
- Homepage:
- Size: 10.7 MB
- Stars: 27
- Watchers: 6
- Forks: 17
- Open Issues: 17
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.txt
Awesome Lists containing this project
README

[](https://gitter.im/dblock/log4jna?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)
[](https://github.com/dblock/log4jna/actions/workflows/Default.yml)
[](https://search.maven.org/artifact/org.dblock.log4jna/log4jna)
Log4JNA is a library of native appenders to write into WindowsTM Event Viewer for [Log4j 2TM](http://logging.apache.org/log4j/).
Unlike the native implementation(s) in Log4jTM, this project uses [JNA](http://github.com/twall/jna) and therefore does not require a native DLL in a system directory or on PATH.
**Note:** Log4JNA is intended for WindowTM environments and requires access to WindowsTM registry and Event Viewer, therefore can only be tested in WindowsTM environments
## Using Log4JNA
#### Getting Log4JNA
See the [Downloads](#dw) section bellow to get Log4JNA.
See [Maven, Ivy, and Gradle Artifacts](MAVENIVYGRADLE.md) to include Log4JNA from Maven Central
#### Using Log4JNA
See [Log4JNA configuration](USAGE.md) for instructions and tips.
See the [FAQ](FAQ.md) for common problems and solutions.
## Developing Log4JNA
See [Contributing](CONTRIBUTING.md) for a primer on how to help on Log4JNA development.
See [Development Environment Set Up](ENVIRONMENT.md) for some tips and requirements before starting.
## Downloads
#### Log4JNA 2 for Log4j 2.x
| Current Release | Latest Development |
| ------------- |------------- |
| [Log4jna Api 2.1.0](https://repository.sonatype.org/service/local/artifact/maven/redirect?r=central-proxy&g=org.dblock.log4jna&a=log4jna-api&v=2.1.0&e=jar) | [Log4JNA Api 2.1.1-SNAPSHOT](https://oss.sonatype.org/service/local/artifact/maven/redirect?r=snapshots&g=org.dblock.log4jna&a=log4jna-api&v=2.1.1-SNAPSHOT&e=jar) |
| [Log4jna Demo 2.1.0](https://repository.sonatype.org/service/local/artifact/maven/redirect?r=central-proxy&g=org.dblock.log4jna&a=log4jna-demo&v=2.1.0&e=jar) | [Log4JNA Demo 2.1.1-SNAPSHOT](https://oss.sonatype.org/service/local/artifact/maven/redirect?r=snapshots&g=org.dblock.log4jna&a=log4jna-demo&v=2.1.1-SNAPSHOT&e=jar) |
| [Log4jna Demo with dependencies 2.1.0](https://repository.sonatype.org/service/local/artifact/maven/redirect?r=central-proxy&g=org.dblock.log4jna&a=log4jna-demo&v=2.1.0&e=jar) | [Log4jna Demo with dependencies 2.1.1-SNAPSHOT](https://oss.sonatype.org/service/local/artifact/maven/redirect?r=snapshots&g=org.dblock.log4jna&a=log4jna-demo&v=2.1.1-SNAPSHOT&c=jar-with-dependencies&e=jar) |
| [Log4jna Zip 2.1.0 (Jars, Sources, Dependencies and Documentation)](https://repository.sonatype.org/service/local/artifact/maven/redirect?r=central-proxy&g=org.dblock.log4jna&a=log4jna-assembly&v=2.1.0&e=zip) | [Log4jna Zip 2.1.1-SNAPSHOT (Jars, Sources, Dependencies and Documentation)](https://oss.sonatype.org/service/local/artifact/maven/redirect?r=snapshots&g=org.dblock.log4jna&a=log4jna-assembly&v=2.1.1-SNAPSHOT&e=zip) |
#### Log4JNA for Log4j 1.x
* [log4jna-1.3.zip](http://code.dblock.org/downloads/log4jna/log4jna-1.3.zip)
* [org.apache.log4jna.nt.Win32EventLogAppender](log4jna-doc/org.apache.log4jna.nt.Win32EventLogAppender.md): a replacement for NTEventLogAppender based on JNA that doesn't require a native DLL in a system directory.
License
-------
This project is licensed under the [Apache Software Foundation 2.0 License](http://www.apache.org/licenses/LICENSE-2.0)