Exemplo n.º 1
0
 private static void writeLogsToFile(string message)
 {
     using (StreamWriter writer = new StreamWriter(ProjectFolders.GetRootFolder() + "Debug/"
                                                   + LOG_NAME, false, Encoding.Default))
     {
         writer.WriteLine(message);
     }
 }
Exemplo n.º 2
0
 static Log()
 {
     using (StreamWriter writer = new StreamWriter(ProjectFolders.GetRootFolder() + "Debug/"
                                                   + LOG_NAME, true, Encoding.Default))
     {
         writer.WriteLine("Session started at : {0}", DateTime.Now);
     }
 }