> -----Original Message----- > From: [EMAIL PROTECTED] [mailto:mono-devel-list- > [EMAIL PROTECTED] On Behalf Of Atsushi Eno > Sent: woensdag 9 augustus 2006 10:43 > To: Gert Driesen > Cc: 'Kornél Pál'; mono-devel-list@lists.ximian.com > Subject: Re: [Mono-dev] local file based EventLog implementation > > Cool! BTW Andreas asked me to keep existing "do nothing" > implementation, so please post a patch before committing code so that > we can meet his request.
Ok, no problem. I'll only commit some new (2.0) classes to svn. Gert > Gert Driesen wrote: > > > >> -----Original Message----- > >> From: [EMAIL PROTECTED] > >> [mailto:mono-devel-list- [EMAIL PROTECTED] On Behalf Of > >> Kornél Pál > >> Sent: woensdag 9 augustus 2006 10:10 > >> To: Atsushi Eno > >> Cc: mono-devel-list@lists.ximian.com; Gert Driesen > >> Subject: Re: [Mono-dev] local file based EventLog implementation > >> > >> Hi, > >> > >>>> And there is another important thing: Messages have to come from a > >>>> DLL file. > >>> I never tried it, but isn't it achieved when we use Windows Event > >>> Logging API? > >> This is how it is achieved in MS.NET: > >>>> MS.NET has a file called EventLogMessages.dll that contains a > >>>> message table resource with messages "%1" that is registered with > >>>> the event source and the entire message will be stored as an > >>>> argument for this > >> "%1" > >>>> message. > >>> To my understanding, we were talking about Windows unmanaged API to > >>> implement EventLogImpl (or whatever we are going to have) that > works > >>> only under Windows. We are not going to mimick the entire event > >> system > >>> for non-Windows land. > >>> > >>> If anyone tries to implement it, that would be fine though. > >> I was speaking only about Windows because you were discussing > >> possibilities on Windows as well. So these informations may help > >> implementing event logging on Windows. > >> > >> And of course knowing how Windows does event logging helps to mimic > >> the same on other OSes. > > > > Sure. I'll start by implementing the registry based methods (for > > creating/deleting event sources, retrieving event logs, ...). > > > > That code can be shared on both windows and Linux. > > > > After that we'll need to look into creating two implementations of an > > "EventLog persistence provider", meaning native win32 eventlog on > > Windows, and a file-based (or SQL-based) implementation on Linux. > > These "only" have to provide implementations for reading and writing > event log entries. > > > > I'll try to get the registry stuff done later today (and check it in > > ?), and work on unit tests after that. > > > > Gert > > > > > > _______________________________________________ > Mono-devel-list mailing list > Mono-devel-list@lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-devel-list _______________________________________________ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list