예제 #1
0
 /// <summary>
 /// Adds a custom logging provider
 /// </summary>
 /// <param name="factory">This <see cref="ILoggerFactory"/> instance</param>
 /// <param name="loggingConfiguration">Appropriate configuration section</param>
 /// <param name="writer"><see cref="ILogWriter"/> implementation</param>
 /// <returns>Updated <see cref="ILoggerFactory"/> instance</returns>
 public static ILoggerFactory AddDLogger(this ILoggerFactory factory, IConfiguration loggingConfiguration, ILogWriter writer)
 {
     return(factory.AddDLogger(new DLoggerSettings(loggingConfiguration), writer));
 }