LogItem.cs 599 B

12345678910111213141516171819202122232425262728
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Diagnostics;
  6. using log4net.Core;
  7. namespace Aitex.DataAnalysis.Log
  8. {
  9. struct LogItem
  10. {
  11. public string msg;
  12. public DateTime dt;
  13. public StackFrame sf;
  14. public Level lv;
  15. public Exception ex;
  16. public LogItem(string message, StackFrame stackFrame, Level level, Exception exception)
  17. {
  18. msg = message;
  19. dt = DateTime.Now;
  20. sf = stackFrame;
  21. lv = level;
  22. ex = exception;
  23. }
  24. }
  25. }