Exemple #1
0
 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();
 }
Exemple #2
0
 public void Log(SimpleSystemDataProvider provider)
 {
     Console.WriteLine(DateTime.Now + "-> CPU load: " +
                       provider.CPULoad + " Available RAM: " + provider.AvailableRAM);
 }