i trying implement elmah in webapi project,since new elmah technique,i not able implement entire thing.i tried follow sample codes in web still not getting.
can please me achieve proper working solution elmah. thankful if working solution provided demo purpose helpful me understand
even though answer @paresh works, should use elmah.contrib.webapi package, since includes needed use elmah web api.
i've written guide install elmah web api. install elmah
, elmah.contrib.webapi
packages , configure this:
public static class webapiconfig { public static void register(httpconfiguration config) { ... config.services.add(typeof(iexceptionlogger), new elmahexceptionlogger()); ... } }
regarding mail configuration, can validate web.config using elmah configuration validator.
Comments
Post a Comment