public Form1() { InitializeComponent(); _reader = new LogReader(); _readLogThread = new Thread(ReadFromLogFile); SleepIntervalUpDown.Value = 1; _sleepIntervalMS = (int)(SleepIntervalUpDown.Value * 1000); }
static void Main(string[] args) { LogReader logReader = new LogReader(); Console.WriteLine($"Errors: {logReader.GerErrorsCount()}"); Console.WriteLine(logReader.GetLogMetadata()); Console.WriteLine("DONE."); Console.ReadLine(); }