예제 #1
0
        internal static ILogProvider CreateFromConfiguration()
        {
            LoggersSection     configurationManager = LoggersSection.GetFromConfiguration();
            DebugLoggerElement debugLoggerElement   = configurationManager.DebugLogger;

            Logger.Severity treshold = debugLoggerElement.Treshold;

            return(new DebugLogProvider(treshold));
        }
예제 #2
0
        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));
        }
예제 #3
0
        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));
        }