Error logging with ELMAH

By default, Sitefinity CMS uses the Enterprise Library to log information for the application. You can view the logging information in folder App_Data/Sitefinity/Logs. For more information about the Enterprise Library, see The Logging Application Block on the MSDN.

Instead of the default Sitefinity CMS logging, you can use Error Logging Modules and Handlers (ELMAH). ELMAH is a plug-in to the Enterprise Library. By including ELMAH as a plug-in to the Enterprise Library, you can benefit from the complex functionality and features of the Enterprise Library and also use the ELMAH user interface. The combination includes the following benefits:

  • Logs for all kinds of events and information, not just for error logging
    ELMAH logs the following:
    • ErrorLog
    • TraceLog
    • UpgradeTraceLog
    • Migration
    • Synchronization
    • MobileApplication
    • DAM
  • All exceptions are logged – including the ones that were thrown in background threads, not just during web request. Typical background thread tasks are scheduled publishing, site sync, mass mail notifications, and others.
  • Centralized exception logging – especially useful for NLB, where each web server logs in its own directory. 
    No text files are created , locked, etc.
  • Ability to send email notifications upon exception.
  • The ELMAH web UI is protected and it can be seen only by administrators.
  • Formatters for formatting the event messages
  • Log filters that allow filtering of log messages
  • True enterprise level exception handling framework, across layers, tiers, processes, and services, together with the Exception Handling Application Block.

Increase your Sitefinity skills by signing up for our free trainings. Get Sitefinity-certified at Progress Education Community to boost your credentials.

Web Security for Sitefinity Administrators

The free standalone Web Security lesson teaches administrators how to protect your websites and Sitefinity instance from external threats. Learn to configure HTTPS, SSL, allow lists for trusted sites, and cookie security, among others.

Foundations of Sitefinity ASP.NET Core Development

The free on-demand video course teaches developers how to use Sitefinity .NET Core and leverage its decoupled architecture and new way of coding against the platform.

Was this article helpful?