Michael, Did you set the MONO_EVENTLOG_TYPE environment variable ?
Checkout the mono manpage for more info. Gert > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:mono-list- > [EMAIL PROTECTED] On Behalf Of Michael Schurter > Sent: maandag 12 februari 2007 19:51 > To: mono-list > Subject: Re: [Mono-list] Nothing happens with mono-service and > EventLog.WriteEntry > > On Mon, 2007-02-12 at 10:42 -0600, Michael Schurter wrote: > > I created a service in MonoDevelop, compiled it using the 2.0 > profile, > > and run it using mono-service. > > > > Everything appears to work fine: Service started and stopped messages > > show up in my syslog, the process is running, and the lock file > exists. > > > > However my service doesn't seem to do anything, and none of my > > EventLog.WriteEntry() calls seem to generate any logging information > > (I also tried Console.WriteLine()). > > Attached is a simple service template that should make a good test > case. > On my computer the only output I get is in my syslog: > > Feb 12 12:39:56 schurter3-linux mono: ServiceTemplate.exe: Service > ServiceTemplate started Feb 12 12:40:36 schurter3-linux mono: > ServiceTemplate.exe: Stopping service ServiceTemplate > > Those are automated messages and none of my EventLog.WriteEntry()s seem > to work. I've tried running my service with mono-service and mono- > service2. > > I still can't figure out how to get good debugging information. Adding > --trace just floods me with output, and when I add filters like "-- > trace=-N:System.XML,-N:System.IO" mono just exits immediately. > > I'm really stuck... anyone have any ideas? > > Michael Schurter _______________________________________________ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list