Windows Event Log Handler

Java Logging Handler publishes log records to Windows Event Log

License

License

GroupId

GroupId

com.github.nikolaybespalov
ArtifactId

ArtifactId

jul4nt
Last Version

Last Version

0.1.5
Release Date

Release Date

Type

Type

jar
Description

Description

Windows Event Log Handler
Java Logging Handler publishes log records to Windows Event Log
Project URL

Project URL

https://github.com/nikolaybespalov/jul4nt
Source Code Management

Source Code Management

https://github.com/nikolaybespalov/jul4nt

Download jul4nt

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.nikolaybespalov/jul4nt/ -->
<dependency>
    <groupId>com.github.nikolaybespalov</groupId>
    <artifactId>jul4nt</artifactId>
    <version>0.1.5</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.nikolaybespalov/jul4nt/
implementation 'com.github.nikolaybespalov:jul4nt:0.1.5'
// https://jarcasting.com/artifacts/com.github.nikolaybespalov/jul4nt/
implementation ("com.github.nikolaybespalov:jul4nt:0.1.5")
'com.github.nikolaybespalov:jul4nt:jar:0.1.5'
<dependency org="com.github.nikolaybespalov" name="jul4nt" rev="0.1.5">
  <artifact name="jul4nt" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.nikolaybespalov', module='jul4nt', version='0.1.5')
)
libraryDependencies += "com.github.nikolaybespalov" % "jul4nt" % "0.1.5"
[com.github.nikolaybespalov/jul4nt "0.1.5"]

Dependencies

compile (2)

Group / Artifact Type Version
net.java.dev.jna : jna jar 4.5.0
net.java.dev.jna : jna-platform jar 4.5.0

test (1)

Group / Artifact Type Version
junit : junit jar 4.11

Project Modules

There are no modules declared in this project.

jul4nt

Java Logging Handler which publishes log records to Windows Event Log

Windows Event Viewer

Maven Central AppVeyor Codacy Codacy Badge

How to use?

The library is available on Maven central. You can start to use the library by adding it to dependencies section of pom.xml:

  <dependencies>
    <!-- ... -->
    <dependency>
      <groupId>com.github.nikolaybespalov</groupId>
      <artifactId>jul4nt</artifactId>
      <version>${jul4nt.version}</version>
      <scope>runtime</scope>
    </dependency>
    <!-- ... -->
  </dependencies>

Or use it in build.gradle:

  dependencies {
    // ...
    runtime("com.github.nikolaybespalov:jul4nt:{jul4nt.version}")
    // ...
  }

Now you can use the logging configuration file with the following options:

# 
handlers = com.github.nikolaybespalov.jul4nt.EventLogHandler

# Specifies the default level for the Handler (defaults to Level.INFO)
com.github.nikolaybespalov.jul4nt.EventLogHandler.level = Level.SEVERE

# Specifies the name of a Filter class to use (defaults to no Filter)
com.github.nikolaybespalov.jul4nt.EventLogHandler.filter = 

# Specifies the name of a Formatter class to use (defaults to internal implementation)
com.github.nikolaybespalov.jul4nt.EventLogHandler.formatter = java.util.logging.SimpleFormatter

# The name of the character set encoding to use (defaults to the default platform encoding)
com.github.nikolaybespalov.jul4nt.EventLogHandler.encoding = UTF-8

# The name of the Source Name to use (defaults to EventLogHandler)
com.github.nikolaybespalov.jul4nt.EventLogHandler.sourceName = My Application

# Allows automatically create the required registry key (defaults to true)
com.github.nikolaybespalov.jul4nt.EventLogHandler.autoCreateRegKey = true

# Allows automatically delete the required registry key (defaults to false)
com.github.nikolaybespalov.jul4nt.EventLogHandler.autoDeleteRegKey = false

Or use the above-described configuration properties as system properties. For example:

-Dcom.github.nikolaybespalov.jul4nt.EventLogHandler.sourceName="My Application"

Example

An example of using the jul4nt

Versions

Version
0.1.5