mirror of
https://github.com/claunia/romrepomgr.git
synced 2025-12-16 11:14:45 +00:00
15 lines
380 B
C#
15 lines
380 B
C#
using Avalonia;
|
|
using Avalonia.Logging;
|
|
|
|
namespace RomRepoMgr;
|
|
|
|
public static class SerilogSinkExtensions
|
|
{
|
|
public static AppBuilder LogToSerilog(this AppBuilder builder, LogEventLevel level = LogEventLevel.Warning,
|
|
params string[] areas)
|
|
{
|
|
Logger.Sink = new SerilogSink(level, areas);
|
|
|
|
return builder;
|
|
}
|
|
} |