7

I've just starting looking at a site in place at work. They're using Elmah to log errors.

It seems to be logging fine, but in the web interface, when I tell Elmah to show me 100 errors per page, it only shows the most recent 15.

Then when I click on "Download Log" I only get shown 15 errors in the CSV.

Anyone know how I can configure it to keep all the errors?

Or can someone point me to some docs on how to do this?

Thanks a lot!

-Evan

1 Answer 1

9

Looks like there is no database configured to log errors to.

By default it only logs the last 15 errors to memory if it has no where to write it to...

4
  • Ah so it must have no where to write. Do you know where I set where it writes?
    – Ev.
    Jun 10, 2010 at 3:08
  • This is the link I learned from. dotnetslackers.com/articles/aspnet/…
    – ggonsalv
    Jun 10, 2010 at 4:49
  • 2
    Thanks ggonsalv! Specifically: <elmah> <errorLog type="Elmah.XmlFileErrorLog, Elmah" logPath="~/ElmahLogs" /> </elmah>
    – Ev.
    Jun 10, 2010 at 5:40
  • Things seem to have changed. On my development machine, I can see more than 15 errors when logging to memory. However, in a release build, I only see the last 15 errors.
    – Rudey
    Mar 21, 2017 at 16:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.