[Mono-dev] XSP debugging
Carlos Solorzano
carlos at applianz.com
Wed Nov 16 21:32:08 EST 2005
I use log4net as well in my code, however there are times when XSP
quits taking in any new calls, I am guessing there is a bug in it but
I can't even begin to file a bug report unless I figure out what
causes it and when so I wanted to know if there is a way to turn on
logs for XSP.
Thanks for the reply though,
--Carlos
On Nov 16, 2005, at 4:43 PM, Marek Habersack wrote:
> On Wed, Nov 16, 2005 at 11:00:05AM -0600, Carlos Solorzano scribbled:
>> Whats the easiest way to do some debugging of XSP, is there a way to
>> turn on logs for XSP?
> personally I use log4net (catches also Console.Write/WriteLine)
> with the
> following config:
>
> <?xml version="1.0" encoding="utf-8" ?>
> <log4net debug="false">
> <appender name="LogFileAppender"
> type="log4net.Appender.FileAppender" >
> <file value="logs/app-log.txt" />
> <appendToFile value="false" />
> <layout type="log4net.Layout.PatternLayout">
> <conversionPattern value="%date %-5level %
> logger - %message%newline" />
> </layout>
> </appender>
> <appender name="HttpTraceAppender"
> type="log4net.Appender.AspNetTraceAppender" >
> <layout type="log4net.Layout.PatternLayout">
> <conversionPattern value="%date %-5level %
> logger - %message%newline" />
> </layout>
> </appender>
> <appender name="HttpTraceAppender"
> type="log4net.Appender.AspNetTraceAppender" >
> <layout type="log4net.Layout.PatternLayout">
> <conversionPattern value="%date %-5level %
> logger - %message%newline" />
> </layout>
> </appender>
> <root>
> <level value="DEBUG" />
> <appender-ref ref="ConsoleAppender" />
> <appender-ref ref="LogFileAppender" />
> <appender-ref ref="HttpTraceAppender" />
> </root>
> </log4net>
>
> And the following attribute somewhere in your main assembly:
>
> [assembly: log4net.Config.XmlConfigurator
> (ConfigFileExtension="log4net", Watch=true)]
>
> With this config, your log4net config file should be named
> YourMainAssembly.dll.log4net
> and should be put in the root directory of your application.
>
> You can get log4net from http://logging.apache.org/log4net/
>
> hope that helps, regards
>
> marek
More information about the Mono-devel-list
mailing list