Custom logging level

2005-09-28 Thread Søren M. Olesen
Hi I been trying to figure out how to make a custum debug level, but haven't succeded yet...anyone who has an example or know where to find an example, that they'd like to share with me TIA Søren

RE: LOG4NET - SMTP Appender Not Working

2005-09-28 Thread Ron Grabowski
Did you configure log4net with ConfigureAndWatch or just Configure? The built-in System.Web.Mail.SmtpServer.Send method has a void return type. Unless I'm mistaken, it does not record its interactions with the mail server. OpenSMTP probably supports this. I know the AspNetEmail email component doe

RE: LOG4NET - SMTP Appender Not Working

2005-09-28 Thread Richman Michael
I've noticed that one one of our servers, an appender might not work until we change the config file. I've noticed this on the smtp appender, and it doesn't fail consistenly one one buffer size, it stops working sometimes, and any change to the config file, including to the bufferSize seems to

RE: LOG4NET - SMTP Appender Not Working

2005-09-28 Thread Ron Grabowski
I don't know why it would work with 1 but not with 512. At least we know the SmtpAppender is working correctly. Is there a message body size limit imposed by your server? Why not run more tests to get a better idea of what the bufferSize fails on: 1: works 10: ??? 50: ??? 200: ??? 350: ??? 5

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

2005-09-28 Thread Nicko Cadell
By default the SqlConnection will use the credentials of the current user (from the process token or if the thread is impersonating from the thread token). This is the equivalent of System.Net.CredentialCache.DefaultCredentials. As the AdoNetAppender tries to open the SqlConnection during Activate

RE: LOG4NET - SMTP Appender Not Working

2005-09-28 Thread Usman Uppal
Ron, Yes setting buffer to 1 works on the third party server. I am getting one email per line of information logging. Why buffer size of 512 works from my pc and not the 3rd party server? What should be appropriate buffer size? usman -Original Message- From: Ron Grabowski [mailto:[EMAIL P

RE: LOG4NET - SMTP Appender Not Working

2005-09-28 Thread Ron Grabowski
Your had posted this earlier: You are aware that no emails will be sent until 512 messages have been queued up? Are you able to send mail using these more general settings? --- Usman Uppal <[EMAIL PROTECTED]> wrote: > Ron, I

RE: LOG4NET - SMTP Appender Not Working

2005-09-28 Thread Usman Uppal
Ron, I can send email using your sample code on hosted server.     using System.Web.Mail;  MailMessage mailMessage = new MailMessage();  mailMessage.To = "[EMAIL PROTECTED]";  mailMessage.From = "[EMAIL PROTECTED]";  mailMessage.Subject = "Subject";  mailMessage.Body = "Hello Wo

RE: SmtpAppender buffer flush (to mail) on shutdown.

2005-09-28 Thread Nicko Cadell
1.2.9 should be the right version to use. Let us know if you see the issue again. Cheers, Nicko > -Original Message- > From: Adam Jack [mailto:[EMAIL PROTECTED] > Sent: 28 September 2005 16:40 > To: Log4NET User > Subject: RE: SmtpAppender buffer flush (to mail) on shutdown. > > I am u

RE: SmtpAppender buffer flush (to mail) on shutdown.

2005-09-28 Thread Adam Jack
I am using 1.2.9 (release from Apache Incubator.) Could it be that this is too 'old'? If not, then I'll triple check that what I last saw didn't have lossy somehow set. Maybe it was a residual message from that configuration, since I've not noticed one recently. Sorry if this was all "lossy" rela

RE: LOG4NET - SMTP Appender Not Working

2005-09-28 Thread Ron Grabowski
I don't think you mentioned the part about the application being hosted on a 3rd party server. Have you verified that you can send mail on that server? using System.Web.Mail; MailMessage mailMessage = new MailMessage(); mailMessage.To = "[EMAIL PROTECTED]"; mailMessage.From = "[EMAIL PROTECTED

RE: Compact Framework 1.0 MsmqAppender

2005-09-28 Thread Jon Finley
Thanks Nicko. With a liberal sprinkling of debug output to the console I can confirm that I am seeing what you have described. I think the memory leak is solved (or at least isn't as bad). I'm certainly not a CE expert but managed code to COM (using CFCom) on WinCE certainly appears to be a fr

RE: LOG4NET - SMTP Appender Not Working

2005-09-28 Thread Usman Uppal
Ron, SMTP Appender works on my machine using our internal SMTP host but when I deploy my code on a hosted server (outside of our environment) that is using different SMTP host, it does not work. Do we need to have Exchange CDO installed on the hosted server? Any other requirements that I should ch

RE: Compact Framework 1.0 MsmqAppender

2005-09-28 Thread Nicko Cadell
> I had hoped that > the Appender would be created once when the app starts but > this does not appear to be the case (although I'm enough > information to even state that). Appenders are either created programmatically or by loading a config file. If loading from a config file the appender

RE: TCP Appender

2005-09-28 Thread Nicko Cadell
> So I wonder if you guys could create a TCP appender? I guess > many people would love that, too :-) We already have 2 TCP appenders - but maybe they are not what you want. The RemotingAppender can be configured to use TCP. This allows LoggingEvent objects to be sent over a TCP connection and

RE: LOG4NET - SMTP Appender Not Working

2005-09-28 Thread Ron Grabowski
I used nDumbster: http://ndumbster.sourceforge.net/ to setup a mock SMTP server on my system and I was able to see log messages: This is what nDumbster processed: thread-index: AcXEM8in/PUSDjTMRYGRv0fJOIQJAQ== Thread-Topic: SmtpAppender Subject From: <[E

RE: SmtpAppender buffer flush (to mail) on shutdown.

2005-09-28 Thread Nicko Cadell
Adam, If the SmtpAppender is configured not to be lossy (i.e. Lossy=false) then the current buffer will be sent. If the appender is in lossy mode (Lossy=true) then the buffer is not sent when the appender is closed. As you are not seeing this behaviour, which version of log4net are you using? Ch

RE: Set Appender properties at run time?

2005-09-28 Thread Jon Finley
Excellent! Thanks Nicko. -Original Message- From: Nicko Cadell [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 28, 2005 8:35 AM To: Log4NET User Subject: RE: Set Appender properties at run time? Jon, If you mean that you want to change the properties on your MsmqAppender that you

RE: Set Appender properties at run time?

2005-09-28 Thread Nicko Cadell
Jon, If you mean that you want to change the properties on your MsmqAppender that you have already configured then you can do something like this: foreach(log4net.Appender.IAppender appender in log4net.LogManager.GetRepository().GetAppenders()) { // Look for the appender you want to change. i