Skip to content

Commit

Permalink
Like this?
Browse files Browse the repository at this point in the history
  • Loading branch information
dblock committed Oct 11, 2011
1 parent 802725a commit 0054cae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/org.apache.log4jna.nt.Win32EventLogAppender.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Registry

In order to get properly formatted messages in the event log, create `HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\eventlog\Application\Log4jna` with the values of `EventMessageFile` and `CategoryMessageFile` pointing to the location of *Win32EventLogAppender.dll* (eg. `c:\Program Files\MyApplication\Win32EventLogAppender.dll`) and the values of `TypesSupported = 7` and `CategoryCount = 6`. Note that unlike log4j's NTEventLogAppender, this DLL only contains message formats and you do not need to place it in the system directory.

![org.apache.log4jna.nt.Win32EventLogAppender registry](log4jna/tree/master/doc/org.apache.log4jna.nt.Win32EventLogAppender.registry.png?raw=true "Registry")
![org.apache.log4jna.nt.Win32EventLogAppender registry](org.apache.log4jna.nt.Win32EventLogAppender.registry.png?raw=true "Registry")

The Log4jna value above is the name of your event source. This can be changed by defining the appender's source property.

Expand Down

0 comments on commit 0054cae

Please sign in to comment.