When configured Win32EventLogAppender in OSGI environment getting below
error.
ERROR Error processing element Win32EventLog ([Appenders: null]):
CLASS_NOT_FOUND
log4j2.xml configuration:
<Win32EventLog name="Win32EventLog" source="Log4jna" application="CustomLog"
eventMessageFile="${dllfile}" categoryMessageFile="${dllfile}">
<PatternLayout pattern="%-5p %d [%t] %m%n" />
</Win32EventLog>
Added dllfile attribute in property (Win32EventLog.dll physical file path)
added below dependency.
<dependency>
<groupId>org.dblock.log4jna</groupId>
<artifactId>log4jna-api</artifactId>
<version>2.0</version>
</dependency>
Whereas standalone application working fine. Please suggest what I need to
do in case of OSGI?
Regards
Munish
--
Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html