Example #1
0
 public static Configurer WithDefaultTargetsAndRulesFromConfiguration(this Configurer @this, string logTableName, string mailFrom, IConfiguration cfg, bool async = true, bool disableMailInDevelop = true)
 {
     @this.WithDefaultTargetsAndRules(
         logTableName, cfg.GetConnectionString(NLogDefaultConfigKeys.SqlConnStringName),
         mailFrom, cfg[NLogDefaultConfigKeys.MailNotificationAddresses.Replace('.', ':')],
         cfg.GetConnectionString(NLogDefaultConfigKeys.SmtpConnStringName), async);
     return(@this);
 }