summary refs log tree commit diff
path: root/MxApiExtensions/Classes/CustomLogFormatter.cs
blob: c351c6afbb4e7efbec13d281c2788df80f4b1dad (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
using Microsoft.Extensions.Logging.Abstractions;
using Microsoft.Extensions.Logging.Console;

namespace MxApiExtensions.Classes;

public class CustomLogFormatter : ConsoleFormatter {
    public CustomLogFormatter(string name) : base(name) { }

    public override void Write<TState>(in LogEntry<TState> logEntry, IExternalScopeProvider? scopeProvider, TextWriter textWriter) {
        Console.WriteLine("Log message");
    }
}