i running windows service on windows server 2003 r2. using exchange server send out emails.
i using log4net.dll 1.2.11.0.
i have situation log4net sends emails , don't eventhough no changes has been made set up.
all other log4net logging works fine. , said application sends out emails , times don't, having made no change application.
all methods in try-catch clauses, don't errors.
when run the windows service on local machine, log4net email works, , said on remote server, sometimes log4net email works, don't, having made no changes setup.
i using log4net.internal.debug , have system.diagnostics.textwritertracelistener file stuff written to. scanning thorugh file haven't noticed in particular, don't know specific for.
any ideas problem or do?
if smtp appender cannot send email log exception text: error occurred while sending e-mail notification. visible if internal debugging enabled. maybe have filters or configured prevents log4net sending email.
you download source code of log4net , add logging smtp appender find out if "sendmail" method of appender gets called @ all. if , no email , no error shown, need assume exchange server somehow swallows emails. if appender not triggered, need review filter / buffer / threshold configuration.
alternatively try use smtppickupdirappender.
Comments
Post a Comment