internal static ILogProvider CreateFromConfiguration() { LoggersSection configurationManager = LoggersSection.GetFromConfiguration(); DebugLoggerElement debugLoggerElement = configurationManager.DebugLogger; Logger.Severity treshold = debugLoggerElement.Treshold; return(new DebugLogProvider(treshold)); }
public static ILogProvider CreateFromConfiguration() { LoggersSection configurationManager = LoggersSection.GetFromConfiguration(); FileLoggerElement fileLoggerElement = configurationManager.FileLogger; string filename = fileLoggerElement.Filename; Logger.Severity treshold = fileLoggerElement.Treshold; return(new FileLogProvider(filename, treshold)); }
internal static ILogProvider CreateFromConfiguration() { LoggersSection configurationManager = LoggersSection.GetFromConfiguration(); MailLoggerElement fileLoggerElement = configurationManager.MailLogger; string from = fileLoggerElement.From; string to = fileLoggerElement.To; string subject = fileLoggerElement.Subject; Logger.Severity treshold = fileLoggerElement.Treshold; return(new MailLogProvider(from, to, subject, treshold)); }