How do you get log4net's SmtpPickupDirAppender to use the IIS pickup directory? -
due nature of live server deploy to, mail settings using deliverymethod="pickupdirectoryfromiis". i'm using log4net send logs via email , need find way of getting same thing.
i can see docs there smtppickupdirappender, has pickupdir setting. if set whatever pickup directory iis uses, i'm sure work ok. want tell log4net use iis's setting , leave there. way if ever changes won't have change log4net config too, we're forget. there way this?
afaik, that's not possible. although sounds idea.
one of greatest things log4net can change configuration without having restart or recompile application (check faq), don't need worry having downtime in logging.
i don't know if can query iis smtp pick directory, maybe if possible can add background job queries iis information?
Comments
Post a Comment