public void Log(SimpleSystemDataProvider provider) { System.IO.StreamWriter writer = new System.IO.StreamWriter(this.filePath, true); writer.WriteLine(DateTime.Now + "-> CPU load: " + provider.CPULoad + " Available RAM: " + provider.AvailableRAM); writer.Close(); }
public void Log(SimpleSystemDataProvider provider) { Console.WriteLine(DateTime.Now + "-> CPU load: " + provider.CPULoad + " Available RAM: " + provider.AvailableRAM); }