Exemple #1
0
        private void LogMessage(LogPrefix prefix, string message, params object[] args)
        {
            string msg = string.Format(message, args);

            try
            {
                File.WriteAllText(this.filename, string.Format("{0}: {1}\n", prefix.ToString(), msg));
            }
            catch (IOException ex)
            {
                System.Console.Error.WriteLine("Exception caught while loggin message: {0}", ex.Message);
            }
        }
Exemple #2
0
 private void LogMessage(LogPrefix prefix, string message)
 {
     WriteToFile(string.Format("{0}: {1}\n", prefix.ToString(), message));
 }
Exemple #3
0
        private void LogMessage(LogPrefix prefix, string message, params object[] args)
        {
            string msg = string.Format(message, args);

            WriteToFile(string.Format("{0}: {1}\n", prefix.ToString(), msg));
        }
Exemple #4
0
 private void LogMessage(LogPrefix prefix, string message)
 {
     File.WriteAllText(this.filename, string.Format("{0}: {1}\n", prefix.ToString(), message));
 }
Exemple #5
0
 private void LogMessage(LogPrefix prefix, string message, params object[] args)
 {
     string msg = string.Format(message, args);
     try
     {
         File.WriteAllText(this.filename, string.Format("{0}: {1}\n", prefix.ToString(), msg));
     }
     catch (IOException ex)
     {
         System.Console.Error.WriteLine("Exception caught while loggin message: {0}", ex.Message);
     }
 }
Exemple #6
0
 private void LogMessage(LogPrefix prefix, string message)
 {
     File.WriteAllText(this.filename, string.Format("{0}: {1}\n", prefix.ToString(), message));
 }