17 lines
534 B
C#
17 lines
534 B
C#
namespace LaaProductionWeb.Blazor.Components.Logging.Sqlite
|
|
{
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
using Microsoft.Extensions.DependencyInjection.Extensions;
|
|
using Microsoft.Extensions.Logging;
|
|
|
|
public static class SqliteLoggingExtensions
|
|
{
|
|
public static ILoggingBuilder AddSqliteLogging(this ILoggingBuilder builder)
|
|
{
|
|
builder.Services.TryAddEnumerable(ServiceDescriptor.Singleton<ILoggerProvider, SqliteLoggerProvider>());
|
|
|
|
return builder;
|
|
}
|
|
}
|
|
}
|