Skip to content

ConnectionStringName via appSettings #7

Description

@WadeTheFade

I couldn't find any documentation on available keys/customizations to use in appSettings, so forgive me if this exists, but according to the documentation in order to point ELMAH to a database (SQL) you have to duplicate the connectionString with a connectionString named "elmah:sql".

To use one of these, create a connection string entry in your web.config named elmah:LOGNAME where LOGNAME is the error log name minus the ErrorLog suffix (case-insensitive). So to use SqlErrorLog, create a connection string named elmah:sql.

Its probably just pedantic, but I'd rather not duplicate an existing connection string to rename it. Previous versions of ELMAH had this configuration option:

<errorLog type="Elmah.SqlErrorLog, Elmah" connectionStringName=""/>

I realize this is a "Configuration-free" and I'm asking for configuration options.

Thanks, in advance.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions