[Mono-dev] mono-service and log4net

pablosantosluac pablosantosluac at terra.es
Tue Nov 27 08:58:57 EST 2007


Hi again,


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...

pablo


----- 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
> otherwise.
>
> pablo
> ----- 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
>>> process
>>> as a service, although it does work when you launch it as a "console"
>>> application.
>>>
>>> As soon as I launch it as "service" I can't get any log. The same works
>>> on
>>> Windows/.NET.
>>
>> If you application is compiled for .NET 2.0 then you must use
>> mono-service2. Please file a bug with a test case otherwise.
>>
>> Robert
>>
>> _______________________________________________
>> Mono-devel-list mailing list
>> Mono-devel-list at lists.ximian.com
>> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>
> _______________________________________________
> 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