[Mono-devel-list] EventLog and syslog
Jonathan Pryor
jonpryor at vt.edu
Wed Jun 29 07:47:11 EDT 2005
On Wed, 2005-06-29 at 12:32 +0400, Vorobiev Maksim wrote:
> Good day.
>
> To the discussion of Syscall.syslog. Why System.Diagnostic.EventLog
> was not implemented for Unixes on top of syslog?
Because I never got that far, and nobody else felt it was important
enough to provide a patch. :-)
Plus, I'm picky about design.
In particular, the current #ifdef-laden code in EventLogImpl.cs is a bad
idea. EventLog should instead follow the design of
System.IO.FileSystemWatcher, where an interface between
FileSystemWatcher and multiple different implementations is provided and
chosen at run-time.
In particular, the selection between a Win32 event log, Syslog-based
event log, and a file-based event log should happen at runtime (based
either on an environment variable or by looking at
Path.DirectorySeparatorChar to select between win32 & syslog). The
Win32 version can wait, but the interface & runtime-based design should
be implemented to permit using a Win32 version later.
If you can do that, I'd be more than happy to look at a patch.
Otherwise, it'll wait until I get around to it, and Mono.Unix is getting
more attention from me...
- Jon
More information about the Mono-devel-list
mailing list