Ejemplo n.º 1
0
 public static void WriteLine(string i_message, bool i_AddTime, bool i_Flush)
 {
     lock (TextLog.M_SynObj)
     {
         TextLog.CheckLogFileName();
         if (i_AddTime)
         {
             TextLog.M_TextWriter.WriteLine("{0}\t{1}", DateTime.Now, i_message);
         }
         else
         {
             TextLog.M_TextWriter.WriteLine("{0}", i_message);
         }
         if (i_Flush)
         {
             TextLog.M_TextWriter.Flush();
         }
     }
 }