Ejemplo n.º 1
0
        public void EnableFileLogging(string logDirPath, Level levelThreshold)
        {
            if (!System.IO.Directory.Exists(logDirPath))
            {
                throw new ArgumentException("Invalid path specified.", logDirPath);
            }

            LogConfiguration.ConfigureFileAppender(_log, logDirPath, levelThreshold);
        }
Ejemplo n.º 2
0
 public void EnableEventLogLogging(string sourceName, Level levelThreshold)
 {
     LogConfiguration.ConfigureEventLogAppender(_log, sourceName, levelThreshold);
 }