[Mono-dev] mono-service and log4net
pablosantosluac at terra.es
Tue Nov 27 08:58:57 EST 2007
Well, if you set up logging in the service OnStart method... it works! :-)
If you just initialize it on the application's Main method it works on
Windows but not on Linux.
Not sure whether it is a bug...
----- Original Message -----
From: "pablosantosluac" <pablosantosluac at terra.es>
To: <mono-devel-list at lists.ximian.com>; "Robert Jordan" <robertj at gmx.net>
Sent: Tuesday, November 27, 2007 2:23 PM
Subject: Re: [Mono-dev] mono-service and log4net
> I'm afraid is not .NET 2. I'll make some more tests and file a bug
> ----- Original Message -----
> From: "Robert Jordan" <robertj at gmx.net>
> To: <mono-devel-list at lists.ximian.com>
> Sent: Tuesday, November 27, 2007 2:16 PM
> Subject: Re: [Mono-dev] mono-service and log4net
>> pablosantosluac wrote:
>>> Hi there,
>>> I'm trying mono-service (1.2.6 preview 2) to launch our server and I've
>>> located the following problem: log4net doesn't work when you run the
>>> as a service, although it does work when you launch it as a "console"
>>> As soon as I launch it as "service" I can't get any log. The same works
>> If you application is compiled for .NET 2.0 then you must use
>> mono-service2. Please file a bug with a test case otherwise.
>> Mono-devel-list mailing list
>> Mono-devel-list at lists.ximian.com
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
More information about the Mono-devel-list