mirror of
https://dev.azure.com/TeilRad/sharee.bike%20App/_git/Code
synced 2024-11-05 10:36:30 +01:00
17 lines
430 B
C#
17 lines
430 B
C#
|
using System;
|
|||
|
using Serilog;
|
|||
|
using Serilog.Configuration;
|
|||
|
|
|||
|
namespace TINK.Services.Logging
|
|||
|
{
|
|||
|
public static class MemoryStackSinkExtensions
|
|||
|
{
|
|||
|
public static LoggerConfiguration MemoryQueueSink(
|
|||
|
this LoggerSinkConfiguration loggerConfiguration,
|
|||
|
IFormatProvider formatProvider = null)
|
|||
|
{
|
|||
|
return loggerConfiguration.Sink(new MemoryStackSink(formatProvider));
|
|||
|
}
|
|||
|
}
|
|||
|
}
|