public static ILoggerFactory AddMXLogger(this ILoggerFactory factory, Action <string> writeLine, LogLevel logLevel = LogLevel.Trace) { var provider = new MXLoggerProvider(writeLine, logLevel); factory.AddProvider(provider); return(factory); }
public static ILoggingBuilder AddMXLogger(this ILoggingBuilder builder, Action <string> writeLine, LogLevel logLevel = LogLevel.Trace) { var provider = new MXLoggerProvider(writeLine, logLevel); return(builder.AddProvider(provider)); }
internal MXLogger(MXLoggerProvider provider, string category) => (Provider, Category) = (provider, category);