예제 #1
0
        public FileLogger(string path, string filenamePrefix, string filenameExtension)
        {
            LogFilename     = path + $"{filenamePrefix}{Path.GetRandomFileName()}.{filenameExtension}";
            logStreamWriter = new StreamWriter(LogFilename);
            logLineFactory  = new LogLineFactory();

            MinimumInfoLevelBeforeWrite = InfoLevel.Info;
        }
예제 #2
0
 public ConsoleLogger()
 {
     logLineFactory = new LogLineFactory();
     MinimumInfoLevelBeforeWrite = InfoLevel.Info;
 }