Question

I included ELMAH (no configuration needed) to my web application

it seems working fine..

but I am worried of the log configuration that was setup automatically as: This log is provided by the In-Memory Error Log.

my question is:

would this strain the resources and the RAM causing the application degradation ??

should I consider other setup like XML or SQL??

Regards

Était-ce utile?

La solution

Remember that your in memory logging will not survive the application pool restarting or being shut down after a period of inactivity. It certainly will not survive a server restart, which with a good host (who is patching their systems) should happen at least monthly. If you have a database available to you then I'd recommend using that (there is a script available to create the tables), otherwise you could look at logging to LocalDb or XML which will persist the details of errors for you. It is also possible to configure Elmah to e-mail one or more addresses with details of exceptions as they occur. See the sample web.config file for details of configuration and syntax.

Lastly, if you are enabling remote access to the Elmah logs, make sure that you have properly secured Elmah (read through if interested or just skip to "Protecting against this attack" for how to avoid it) to prevent unauthorised access and the potential for attackers to impersonate either you or your users. There is also an article on the Elmah Wiki that describes securing against remote access.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top