I was looking at a way to write to windows event log using JNA. I am able to write to windows event log using log4J2 and Log4JNA libraries.
However, I would like to write directly using JNA and I am not comfortable having to add a dll file, which is required by Log4JNA.
I am currently Looking at Advapi32 and Advapi32Util but couldn't find any methods to write to event log.
How can this be done?