sharee.bike-App/TINKLib/Services/Logging/MemoryStackSinkExtensions.cs

17 lines
382 B
C#
Raw Normal View History

2022-08-30 15:42:25 +02:00
using System;
using Serilog;
using Serilog.Configuration;
namespace TINK.Services.Logging
{
2022-09-06 16:08:19 +02:00
public static class MemoryStackSinkExtensions
{
public static LoggerConfiguration MemoryQueueSink(
this LoggerSinkConfiguration loggerConfiguration,
IFormatProvider formatProvider = null)
{
return loggerConfiguration.Sink(new MemoryStackSink(formatProvider));
}
}
2022-08-30 15:42:25 +02:00
}