* test some refactoring for cachedplayer * rework logging * fix saving of log level --------- Co-authored-by: rootdarkarchon <root.darkarchon@outlook.com>
17 lines
505 B
C#
17 lines
505 B
C#
using Microsoft.Extensions.DependencyInjection;
|
|
using Microsoft.Extensions.DependencyInjection.Extensions;
|
|
using Microsoft.Extensions.Logging;
|
|
|
|
namespace MareSynchronos.Utils;
|
|
|
|
public static class DalamudLoggingProviderExtensions
|
|
{
|
|
public static ILoggingBuilder AddDalamudLogging(this ILoggingBuilder builder)
|
|
{
|
|
builder.ClearProviders();
|
|
|
|
builder.Services.TryAddEnumerable(ServiceDescriptor.Singleton<ILoggerProvider, DalamudLoggingProvider>());
|
|
|
|
return builder;
|
|
}
|
|
} |