GithubHelp home page GithubHelp logo

elmah.ravendb's Introduction

Elmah.RavenDB

Elmah.RavenDB is a RavenDB storage backend for ELMAH.

License

Elmah.RavenDB itself is licensed under the MIT license.

Installation

Elmah.RavenDB can be installed in two ways. The easiest is to install the Elmah package that includes all the config, then install Elmah.RavenDB which will add the errorLogger to the <elmah> config section.

PM> Install-Package elmah
PM> Install-Package Elmah.RavenDB

The second method works better if you already have ELMAH installed or you wish to do all the configuration manually. Simply install the Elmah.RavenDB package.

PM> Install-Package Elmah.RavenDB

Connection Strings

Both of these installation methods configure the RavenDbErrorLog to use a connectionString named "Elmah". You will need to manually edit the connection strings to add a valid RavenDB connection string.

e.g.

<connectionStrings>
    <add name="Elmah" connectionString="Url=http://localhost:8080;Database=MyApp.Elmah" />
</connectionStrings>

Use an external configured store

Besides using a connection string you could also provide an instance of an IDocumentStore at the startup of your application.

protected void Application_Start()
{
   _store = new EmbeddableDocumentStore
   {
     RunInMemory = true               
   };

   _store.Initialize();

   RavenDbErrorLog.ConfigureWith(_store);
   //...     
}

Please make sure that you have finished the configuration before any errors could occur which should be handled by ELMAH.

Warning: A configured connection string will be ignored if you have passed an RavenDB store to ConfigureWith

elmah.ravendb's People

Contributors

ccellar avatar gregbrant2 avatar jthope avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.