Windows Event Log Handler

Java Logging Handler publishes log records to Windows Event Log

Лицензия

Лицензия

Группа

Группа

com.github.nikolaybespalov
Идентификатор

Идентификатор

windows-event-log-handler
Последняя версия

Последняя версия

0.1.4
Дата

Дата

Тип

Тип

jar
Описание

Описание

Windows Event Log Handler
Java Logging Handler publishes log records to Windows Event Log
Ссылка на сайт

Ссылка на сайт

https://github.com/nikolaybespalov/windows-event-log-handler
Система контроля версий

Система контроля версий

https://github.com/nikolaybespalov/windows-event-log-handler

Скачать windows-event-log-handler

Как подключить последнюю версию

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

Зависимости

compile (2)

Идентификатор библиотеки Тип Версия
net.java.dev.jna : jna jar 4.5.0
net.java.dev.jna : jna-platform jar 4.5.0

test (1)

Идентификатор библиотеки Тип Версия
junit : junit jar 4.11

Модули Проекта

Данный проект не имеет модулей.

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

Версии библиотеки

Версия
0.1.4
0.1.3
0.1.2