Skip to content
This repository has been archived by the owner on Dec 31, 2018. It is now read-only.
/ ElasticElmah Public archive

Appender of serialized log4net objects in elasticsearch. Note that you should use something like log4net.ElasticSearch, serilog or Logary instead (since they support kibana format)

Notifications You must be signed in to change notification settings

ozzymcduff/ElasticElmah

Repository files navigation

ElasticElmah Build Status Build status

Originally a fork of ELMAH

https://code.google.com/p/elmah/

Log4net elasticsearch appender

Now it's a log4net appender to elastic that knows knows how to log web context and can format some stack traces.

Usage

Register it as an appender in log4net.

Parameters: connectionstring: Right now a connection string looking like a database connection string.

<appender name="ElasticSearchAppender" type="ElasticElmah.Appender.ElasticSearchAppender, ElasticElmah.Appender">
  <connectionString value="Server=localhost;Index=log;Port=9200"/>
</appender>

In order to read logs, you can use the class ElasticSearchRepository. There is a test site based on Elmah (ElasticElmahMVC). The reason for an asp.net MVC site is that it enables you to integrate logging information with your admin site

What to copy from this lib?

Elmah has a dump of the web context. Implemented against log4net here ./src/ElasticElmah.Appender/ElasticSearchWebAppender.cs

Alternatives

License

Same as ELMAH

http://www.apache.org/licenses/LICENSE-2.0

About

Appender of serialized log4net objects in elasticsearch. Note that you should use something like log4net.ElasticSearch, serilog or Logary instead (since they support kibana format)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published