Skip to content

Instantly share code, notes, and snippets.

View marlon-tucker's full-sized avatar

marlon-tucker

View GitHub Profile
@marlon-tucker
marlon-tucker / ExampleSink.cs
Created March 30, 2022 11:09
Serilog Two Stage Init Infinite Loop Example
using Microsoft.Extensions.Caching.Memory;
using Serilog.Core;
using Serilog.Events;
namespace SerilogLoopGist;
public class ExampleSink : ILogEventSink
{
private readonly IMemoryCache _memoryCache;