ELMAH does not include an event log parameter.
ELMAH error log classes are not writable; they also read log data so that it can be displayed in the ELMAH web interface. In addition, ELMAH records more than just exception information. It also registers server variables, a collection of forms, and the information necessary to reproduce the yellow screen of death. Even if you recorded all this information in the event log, it would be difficult to read like plain text, and it would be very difficult to read back in such a way that the ELMAH web interface could use it. If you are not going to use the ELMAH web interface, then it is clear that this is not a problem.
If you want to log exception master data in the event log, you can create your own error log by subclassing ErrorLog. ELMAH supports multiple error logs, so you can continue to write detailed data to XML or a database (to serve the ELMAH web interface), and then log a subset of this data in the event log.
source share