An open API service indexing awesome lists of open source software.

https://github.com/pmiossec/serilog-sinks-memory

Serilog memory sink that log in a `Queue<string>`
https://github.com/pmiossec/serilog-sinks-memory

csharp serilog serilog-sink

Last synced: about 1 year ago
JSON representation

Serilog memory sink that log in a `Queue<string>`

Awesome Lists containing this project

README

          

# Serilog.Sinks.Memory

The Queue sink for Serilog.

Writes to a specified `System.Collection.Generic.Queue` and by specifying the number of messages kept.

```csharp
var messages = new Queue();

var log = new LoggerConfiguration()
.WriteTo.MemoryWriter(messages, 100)
.CreateLogger();
```

* [Documentation](https://github.com/serilog/serilog/wiki)

Copyright © 2019 Serilog Contributors - Provided under the [Apache License, Version 2.0](http://apache.org/licenses/LICENSE-2.0.html).