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); }
public void EnableEventLogLogging(string sourceName, Level levelThreshold) { LogConfiguration.ConfigureEventLogAppender(_log, sourceName, levelThreshold); }