Thanks,

This resolve in  partly my problem, but there's any way to log
diferent messages in diferent files?

To view logs, i will try, but thanks in advanced!

n

On Thu, 17 Mar 2005 11:05:47 -0800 (PST), Ron Grabowski
<[EMAIL PROTECTED]> wrote:
> This will log all messages to two seperate files:
> 
> <log4net>
>  <appender name="FileAppender1" type="log4net.Appender.FileAppender">
>   <file value="c:\\log1.txt" />
>   <layout type="log4net.Layout.PatternLayout,log4net">
>    <conversionPattern value="%5p %d (%c:%L) - %m%n" />
>   </layout>
>  </appender>
>  <appender name="FileAppender2" type="log4net.Appender.FileAppender">
>   <file value="c:\\log2.txt" />
>   <layout type="log4net.Layout.PatternLayout,log4net">
>    <conversionPattern value="%5p %d (%c:%L) - %m%n" />
>   </layout>
>  </appender>
>  <root>
>   <level value="ALL" />
>   <appender-ref ref="FileAppender1" />
>   <appender-ref ref="FileAppender2" />
>  </root>
> </log4net>
> 
> I use Chainsaw and the UdpAppender to view log files:
> 
>  http://logging.apache.org/log4j/docs/chainsaw.html
> 
> It can be configured to read text files. Here are some of the other
> prorams that users on the list have suggested:
> 
>  http://www.baremetalsoft.com/
> 
>  http://www.devintelligence.com/Log4NetViewer/
> 
> - Ron
> 
> --- Nuno Almeida <[EMAIL PROTECTED]> wrote:
> > Hello,
> >
> > I'm using log4net for a short time, and I have 2 questions.
> >
> > 1. I'm using in a web application, and i need two use 2 different log
> > files in same application.
> > Is that possible? If yes, how can I do it?
> >
> > 2. I'm using a txt file for my logs. Is there any application to read
> > those files?
> >
> > thanks,
> >
> > --
> > Nuno Almeida
> > [EMAIL PROTECTED]
> > http://couveroxa.blogspot.com
> > http://cantapiriquitocanta.blogspot.com/
> >
> 


-- 
Nuno Almeida
[EMAIL PROTECTED]
http://couveroxa.blogspot.com
http://cantapiriquitocanta.blogspot.com/

Reply via email to