|
log4net: msg#00124windows.devel.dotnet.web
Anyone get this to work for the fileappender and the smtpappender? I can't get any emails to get sent out. I have tried several configurations and nothing is working, what am I doing wrong here? I stepped through the code, and it does not even hit the SmtpAppender class. I am about to give up here. I originally thought it was because that class uses system.web.mail and I don't have smtp service setup on the server, but then when I stepped through the code, I saw that its not even calling this class at all. I even took out the RollingFileAppender configuration from the xml config and just tried the smtp and it still skips over it. <?xml version="1.0" encoding="utf-8" ?> <log4net> <appender name="RollingFileAppender" type="log4net.Appender.RollingFileAppender"> <file value="Logs/log.txt" /> <appendToFile value="true" /> <rollingStyle value="Size" /> <maxSizeRollBackups value="10" /> <maximumFileSize value="100KB" /> <staticLogFileName value="true" /> <layout type="log4net.Layout.PatternLayout"> <conversionPattern value="%-5l :: %m%n" /> </layout> </appender> <appender name="SmtpAppender" type="log4net.Appender.SmtpAppender"> <to value="emailto@xxxxxxxxxx" /> <from value="emailfrom@xxxxxxxxxx" /> <subject value="Site Log" /> <smtpHost value="mail.domain.com" /> <bufferSize value="512" /> <param name="Lossy" value="true" /> <evaluator type="log4net.spi.LevelEvaluator"> <param name="Threshold" value="WARN" /> </evaluator> <layout type="log4net.Layout.PatternLayout"> <param name="ConversionPattern" value="%n%d [%t] %-5p %c [%x] - %m%n%n%n" /> </layout> </appender> <root> <!-- * ALL * DEBUG * INFO * WARN * ERROR * FATAL * OFF --> <level value="ERROR" /> <appender-ref ref="RollingFileAppender" /> <appender-ref ref="SMTPAppender" /> </root> </log4net> =================================== This list is hosted by DevelopMentor® http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Security/Permission issue with OWC 11.0 on a Windows 2003 server: 00124, Nicholas Palmer |
|---|---|
| Next by Date: | Re: log4net: 00124, jeff hughes |
| Previous by Thread: | Security/Permission issue with OWC 11.0 on a Windows 2003 serveri: 00124, Nicholas Palmer |
| Next by Thread: | Re: log4net: 00124, jeff hughes |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |