Exemplo n.º 1
0
 public void Write(object sender, BL.LogInfo e)
 {
     lock (locker)
     {
         string fileName = System.Configuration.ConfigurationManager.AppSettings["PathToLog"];
         if (fileName != null)
         {
             File.AppendAllText(fileName, string.Format("{0}: {1}\r\n", DateTime.Now, e.LogValue));
         }
     }
 }
Exemplo n.º 2
0
 public void Write(object sender, BL.LogInfo e)
 {
     Console.WriteLine(string.Format("{0}: {1}\r\n", DateTime.Now, e.LogValue));
 }