Ejemplo n.º 1
0
 public static LoggerConfiguration DiscordWebhook(this LoggerSinkConfiguration configuration,
                                                  string webhookEndpointUrl,
                                                  LogEventLevel minimumLevel     = LogEventLevel.Verbose,
                                                  LoggingLevelSwitch?levelSwitch = default,
                                                  IFormatProvider?formatProvider = default)
 {
     return(configuration.Discord(new DiscordWebhookMessenger(webhookEndpointUrl),
                                  minimumLevel, levelSwitch, formatProvider, disposeMessenger: true));
 }