RE: RollingFileAppender Stops logging in Web Service

2005-12-13 Thread Ron Grabowski
The log4net.txt file was meant to help you track down problems after the application has been running for a while. If you let you application run for a few days or weeks and the RollingFileAppender fails, there's a good chance the log4net.txt file will tell you what's going wrong. --- Fahad Sarwar

RE: Setting properties on a logging event

2005-12-13 Thread Nicko Cadell
You can write a helper method: public class LogHelper { private static void LogInfoWithProperties(ILog log, string message, IDictionary properties) { if (log.IsInfoEnabled) { LoggingEvent lo

RE: html output

2005-12-13 Thread Nicko Cadell
You can leverage the existing (Rolling)FileAppender infrastructure by writing a Layout object that renders HTML. There is an example appender in the log4net source code log4net.Layout.SimpleLayout (in the download incubating-log4net-1.2.9-beta\src\Layout\SimpleLayout.cs). It should be simple to ext

RE: log4net exception handling

2005-12-13 Thread Ramaa Davanagere
Title: RE: log4net exception handling This is great!! It's just what I was looking for. Thanks a ton. -Original Message- From: Nicko Cadell [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 13, 2005 12:33 PM To: Log4NET User Subject: RE: log4net exception handling You can wri

RE: log4net exception handling

2005-12-13 Thread Nicko Cadell
You can write a custom error handler and attach it to the file appender. The log4net.Core.IErrorHandler interface defines the error handler. The appender has a property ErrorHandler which can be set to a custom error handler instance. The default error handler writes the error message to the log4ne

RE: log4net and Microsoft Transactions

2005-12-13 Thread Nicko Cadell
You can disable auto-enlistment in existing transactions by specifying Enlist=false as a connection string parameter for a SqlConnection, e.g. Data Source=localhost;Integrated Security=SSPI;Initial Catalog=Northwind;Enlist=false From: http://msdn.microsoft.com/library/en-us/cpguide/html/cpconenli

RE: filtering on message source

2005-12-13 Thread Nicko Cadell
You have a separate Logger for each class (i.e. a separate ILog interface). If you just want to see the log output from 2 specific loggers you can do: ... No need for filters if you just want cut a section through the Logger hierarchy. Its performant too. Cheers, Nicko

RE: How to pass integrated security credentials to AdoNetAppender from ASP.NET?

2005-12-13 Thread Nicko Cadell
> > The only way I could see for the keepers of log4net to solve > this problem would be to go back and try to re-fetch > credentials at the point you log events to adoappenders in > your code ... or any point after application startup. Might > be possible, dunno. Prolly very expensive in p

RE: Trouble with PropertyFilter

2005-12-13 Thread Nicko Cadell
The filters are a chain. Each filter in the chain has three options: Accept, Deny, Neutral. The Accept and Deny option are effective immediate and the other filters are ignored. If the filter selects the Neutral option then the logging event is passed to the next filter in the chain. When the loggi

RE: Programatically changing the logger for NHibernate

2005-12-13 Thread Nicko Cadell
Philip, Rather than use a Filter, there is a more performant option, which is to set the level on the NHibernate logger. By default this will be inherited by the child loggers, i.e. all of the NHibernate loggers. To do this in code you can do: ((log4net.Repository.Hierarchy.Logger)LogManager.GetL

RE: RollingFileAppender Stops logging in Web Service

2005-12-13 Thread Fahad Sarwar
I have been using 1.2.0 Beta8 version ( or version 1:2:0:30714 ). I tried running that system.diagnostics which produced the following log, which didn't really help using the config file detailed in previous email. log4net: log4net assembly [log4net, Version=1.2.0.30714, Culture=neutral, PublicKe

Setting properties on a logging event

2005-12-13 Thread Dalton, Barnaby
Title: Message Is there a user accessible way to set some properties for a single event? I would like to be able to log event as a list of names and values and have these written as separate attributes/elements  by the XmlLayout class. I can set the global properties but this seems a bit clu

SV: html output

2005-12-13 Thread Brian Gustavsen
Title: Message hmm ok, that could also be a solution, how do you do that ?   thanks ! Fra: Mirza Sejto [mailto:[EMAIL PROTECTED] Sendt: 13. december 2005 10:05Til: 'Log4NET User'Emne: RE: html output I'd go for XML output and do XSLT transformations to HTML           Best Regards, Mirzas

RE: html output

2005-12-13 Thread Mirza Sejto
Title: Message I'd go for XML output and do XSLT transformations to HTML           Best Regards, Mirzas -Original Message-From: Brian Gustavsen [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 13, 2005 10:07 AMTo: log4net-user@logging.apache.orgSubject: html output are

html output

2005-12-13 Thread Brian Gustavsen
are there any html logfile appender or is it possible to write it my self ?   Best Regards/Med venlig hilsen   Brian Gustavsen   Adwiza ApS Drejergangen 3 B DK-2690 Karlslunde Denmark   E-mail:    bg@adwiza.com Web-site:    www.adwiza.com   Office:  +45 70 22 85 50 Fax: +45 70