[Mono-list] Nothing happens with mono-service and EventLog.WriteEntry
Gert Driesen
gert.driesen at telenet.be
Fri Feb 16 06:53:22 EST 2007
> -----Original Message-----
> From: mono-list-bounces at lists.ximian.com [mailto:mono-list-
> bounces at lists.ximian.com] On Behalf Of Jonathan Pryor
> Sent: vrijdag 16 februari 2007 12:37
> To: Gert Driesen
> Cc: 'mono-list'
> Subject: Re: [Mono-list] Nothing happens with mono-service and
> EventLog.WriteEntry
>
> On Thu, 2007-02-15 at 17:39 +0100, Gert Driesen wrote:
> > I'll checkout the Mono.Unix API for Syslog and perhaps add support
> for using
> > it as a backend for event log.
>
> You won't be able to use Mono.Unix directly from EventLog, since we
> don't want System.dll to depend on Mono.Posix.dll. It should be fairly
> easy to create a System.Diagnostics.SyslogEventLog type which copies
> the
> Mono.Unix syslog-related code.
>
> The one downside is that Mono.Unix depends on MonoPosixHelper for
> converting values, though System.dll already depends on MonoPosixHelper
> for System.IO.Compression.DeflateStream, so this really isn't a
> problem.
We *could* add the syslog event log implementation to Mono.Unix, and add
support for event log implementations in external (GAC'ed) assemblies to
MONO_EVENTLOG_TYPE.
However, to do this we'd have to mark the EventLogImpl class public and this
is a no-go since it would break the public API ...
Gert
More information about the Mono-list
mailing list