The log4net CVS repository contains an EventLogAppender, LocalSyslogAppender, and RemoteSyslogAppender. These are available in the mono, .net and cli builds. The Mono implementation of the EventLog API is a NOP. The LocalSyslogAppender does not work on Windows because the libc library does not have a syslog entry point. The RemoteSyslogAppender will work on either Mono or Windows as it simply uses UDP to log to a server.
Nicko > -----Original Message----- > From: Shaily Goel [mailto:[EMAIL PROTECTED] > Sent: 09 March 2005 05:02 > To: [email protected] > Subject: EventLogAppender vs SysLogAppender > > Using log4net I am developing an application which should run > independent of any platform(.net or mono).My requirement is > to log the messages to system log on Linux and Windows Event > Log on windows (as windows Event Log is the analog to Syslog > on windows). I found that log4net which is used for > .net(windows) already has the EventLogAppender to log the > messages to Windows EventLog but mono -log4net does not have > SysLogappender. > > Does the above mean my application should use different > log4net(mono or .net version) depending on the installed platform. > Does it also mean that on mono platform I should write my own > SysLog appender to log messages to system log as log4net > mono does not provide this functionality? > > > Thanks > Shaily > > > >
