Beispiel #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;
        }
Beispiel #2
0
 public ConsoleLogger()
 {
     logLineFactory = new LogLineFactory();
     MinimumInfoLevelBeforeWrite = InfoLevel.Info;
 }