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>`
- Host: GitHub
- URL: https://github.com/pmiossec/serilog-sinks-memory
- Owner: pmiossec
- License: apache-2.0
- Created: 2019-09-30T12:20:18.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-09-30T12:20:54.000Z (over 6 years ago)
- Last Synced: 2025-01-28T19:13:50.642Z (over 1 year ago)
- Topics: csharp, serilog, serilog-sink
- Language: C#
- Size: 9.77 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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).