[Mono-dev] local file based EventLog implementation

Gert Driesen gert.driesen at telenet.be
Thu Aug 17 16:05:31 EDT 2006



> -----Original Message-----
> From: Kornél Pál [mailto:kornelpal at gmail.com]
> Sent: donderdag 17 augustus 2006 21:47
> To: Gert Driesen
> Cc: mono-devel-list at lists.ximian.com
> Subject: Re: [Mono-dev] local file based EventLog implementation
> 
> >> On Windows it is required. OK, it can have any name but Windows API
> >> requires a message DLL and no message DLL can be specified using
> >> managed API so this is transparent to managed applications.
> >
> >It is not required. I have it working perfectly fine without one.
> 
> It sounds weird to me. Could you be more specific. (For example using
> some sample code.)

You could have a look at the patch(es) I sent to the list earlier this week.

If they are too large, I'll just send you the code for my Win32EventLog
implementation.

> >This is supported in .NET 2.0 by using EventLog.WriteEvent overload.
> >Also, the CreateEventSource overload that takes an EventSourceCreation
> >instance supports setting a custom message DLL.
> 
> Right, I didn't noticed this addition to 2.0, sorry for the
> desinformation.:) If you want full compatibility, PE files with
> MessageTable resource (same format as on Windows) should be used. There
> is no code so there is no reason to use different format.

Ok, so these can be used on both Windows and Unix ?

Gert




More information about the Mono-devel-list mailing list