Registering multiple goals with Elmah

I have the following Elmah configuration:

<elmah>
    <security allowRemoteAccess="0" />
    <errorLog type="Elmah.SqlErrorLog, Elmah" connectionStringName="Elmah.Sql"  />
    <errorLog type="Elmah.MemoryErrorLog, Elmah" size="50"  />
    <errorLog type="Elmah.XmlFileErrorLog, Elmah" logPath="~/App_Data" />
</elmah>

But I get this error when starting the application:

Partitions should appear only once per configuration file. See the Help topic for exceptions.

+5
source share
1 answer

You can use only one type of logger in Elmah. What you indicate in the section <errorLog>is where Elmah registers it.

When you retrieve errors using a handler /elmah.axd, it retrieves this data from the type of data source specified in the section <errorLog>. It really doesn't make sense to have more than one, or at least not so.

+6
source

All Articles