Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/elmahio/serilog-sinks-elmahio
A Serilog sink that writes events to elmah.io
https://github.com/elmahio/serilog-sinks-elmahio
crash-reporting crash-reporting-tool elmah-io error-handling error-log error-logging error-monitoring error-reporting logging serilog serilog-logger serilog-sink
Last synced: 3 months ago
JSON representation
A Serilog sink that writes events to elmah.io
- Host: GitHub
- URL: https://github.com/elmahio/serilog-sinks-elmahio
- Owner: elmahio
- License: apache-2.0
- Created: 2015-02-22T22:48:08.000Z (almost 10 years ago)
- Default Branch: main
- Last Pushed: 2024-11-07T10:08:40.000Z (3 months ago)
- Last Synced: 2024-11-07T11:20:59.049Z (3 months ago)
- Topics: crash-reporting, crash-reporting-tool, elmah-io, error-handling, error-log, error-logging, error-monitoring, error-reporting, logging, serilog, serilog-logger, serilog-sink
- Language: C#
- Homepage: https://elmah.io
- Size: 2.73 MB
- Stars: 7
- Watchers: 4
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# Serilog.Sinks.ElmahIo
A Serilog sink that writes events to [elmah.io](https://elmah.io).
[![Build status](https://github.com/elmahio/serilog-sinks-elmahio/workflows/build/badge.svg)](https://github.com/elmahio/serilog-sinks-elmahio/actions?query=workflow%3Abuild) [![NuGet Version](https://img.shields.io/nuget/v/Serilog.Sinks.ElmahIO.svg?style=flat)](https://www.nuget.org/packages/Serilog.Sinks.ElmahIO/)
To configure the elmah.io sink, call the `ElmahIo` method as part of your log configuration:
```csharp
var log = new LoggerConfiguration()
.WriteTo.ElmahIo(new ElmahIoSinkOptions("API_KEY", new Guid("LOG_ID")))
.CreateLogger();
```The sink captures all levels, but respect the minimum level configured on LoggerConfiguration. Serilog properties are converted to elmah.io's concept of custom variables, when logging new events.
[Documentation](https://docs.elmah.io/logging-to-elmah-io-from-serilog/)