FileStream fs = new FileStream(System.AppDomain.CurrentDomain.BaseDirectory + "log.txt",FileMode.Append);
                byte[] data1 = System.Text.Encoding.Default.GetBytes(eeee.Message);
                byte[] data2 = System.Text.Encoding.Default.GetBytes(eeee.StackTrace);
                fs.Write(data1,0,data1.Length);
                fs.Write(data2, 0, data2.Length);
                fs.Flush();
                fs.Close();

 

相关文章:

  • 2021-11-10
  • 2021-06-03
  • 2021-08-20
  • 2021-06-22
  • 2021-09-28
  • 2021-09-30
  • 2021-11-21
猜你喜欢
  • 2021-06-21
  • 2022-12-23
  • 2022-03-06
  • 2022-12-23
  • 2023-02-08
  • 2021-06-14
  • 2022-12-23
相关资源
相似解决方案