Esempio n. 1
0
        internal override List <ILogTarget> GetLogTargets()
        {
            var targets  = new List <ILogTarget>();
            var formater = new LogMessageFormater(LogLevel, new ProviderFactory(), "|");
            var target   = new Output(formater, new ConsoleWriter());

            targets.Add(target);
            return(targets);
        }
Esempio n. 2
0
        internal override List <ILogTarget> GetLogTargets()
        {
            var targets  = new List <ILogTarget>();
            var formater = new LogMessageFormater(LogLevel, new ProviderFactory(), "|");
            var target   = new Output(formater,
                                      new FileWriter(
                                          new FrequencyBaseFileNameProvider(
                                              new FrequencyBasedFileNameProviderFactory(
                                                  new ProviderFactory()), this
                                              )));

            targets.Add(target);
            return(targets);
        }