[Mono-dev] [PATCH] EventLog implementation

Kornél Pál kornelpal at gmail.com
Thu Aug 10 14:20:26 EDT 2006


Yeah, I see the same; it hardly does anything. NullEventLog does nothing and 
you use Win32EventLog that is missing from the diff file. I see that a lot 
of work is in it and a lot of things are improved but the actual event 
logging is missing.

I think you should let Atsushi Eno to commit his patch then you could 
integrate it into your framework. Such a (working) patch is more likely to 
be approved. Later you or other people could add alternative event log 
providers as well.

I like implementing Windows specific things in Mono because I use Mono on 
Windows as well and I believe that supportting Windows that is much 
different than Linux helps to make Mono better even on Linux. So at a later 
time I may implement a Windows event log driver but currently I'm working on 
Encoding classes and in fact currently I'm not working on Mono because I 
have little time for that.:)

Kornél

----- Original Message ----- 
From: "Atsushi Eno" <atsushi at ximian.com>
To: "Gert Driesen" <gert.driesen at telenet.be>
Cc: "'Kornél Pál'" <kornelpal at gmail.com>; <mono-devel-list at lists.ximian.com>
Sent: Thursday, August 10, 2006 7:53 PM
Subject: Re: [PATCH] EventLog implementation


> Just curious, where is my local file implementation which just works?
>
> If it isn't in your patch, I'll ignore it and commit my patch so
> that I don't have to waste customers' time for something unimplemented.
>
> Feel free to improve your implementation after that.
>
> Atsushi Eno
>
> Gert Driesen wrote:
>> Hi Kornél and Atsushi,
>>
>> I've attached a working patch for the new EventLog implementation, along
>> with a set of unit tests (that pass on Mono and .NET).
>>
>> Right now, reading of event log entries is not implemented for the win32
>> implementation (Kornél, happen to volunteer for this ?).
>>
>> It's probably not perfect yet, but it should give us a good start.
>>
>> Gert
>>
>>> -----Original Message-----
>>> From: mono-devel-list-bounces at lists.ximian.com [mailto:mono-devel-list-
>>> bounces at lists.ximian.com] On Behalf Of Kornél Pál
>>> Sent: donderdag 10 augustus 2006 13:03
>>> To: Gert Driesen; 'Atsushi Eno'
>>> Cc: mono-devel-list at lists.ximian.com
>>> Subject: Re: [Mono-dev] local file based EventLog implementation
>>>
>>>> It's clear to me, but we'll need to see how we distribute this file
>>> (on
>>>> Windows) and locate it.
>>> I think the easiest solution is to put the DLL to the directory of
>>> mscorlib.dll. This lets us use different version based on framework
>>> version (altough it's not currently required but MS.NET does the same
>>> so may be required in the future) and it's quite easy to locate the
>>> directory of mscorlib.dll so the file can be located easily as well.
>>>
>>>> However, I haven't yet managed to read entries from the event log.
>>> Does
>>>> anyone have any info on doing this (using C#) ?
>>> Using API it's quite easy:
>>> http://windowssdk.msdn.microsoft.com/en-us/library/ms684096.aspx
>>>
>>> Of course in C# this requires some wrapper code but you should use
>>> ReadEventLog.
>>>
>>> If you want to read .evt files directly it may be a bit difficult
>>> because the format is barely documented.
>>>
>>> I don't know how much rationale it has but if we were using the same
>>> .evt format on other OSes it could be fully compatible with Windows.
>>>
>>> Kornél
>>>
>>> _______________________________________________
>>> Mono-devel-list mailing list
>>> Mono-devel-list at lists.ximian.com
>>> http://lists.ximian.com/mailman/listinfo/mono-devel-list
> 




More information about the Mono-devel-list mailing list