P.cs 674 B

12345678910111213141516171819202122232425262728293031
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using Y.Utils.IOUtils.LogUtils;
  7. namespace Oreo.PCMonitor.Commons
  8. {
  9. public static class P
  10. {
  11. public static void Init()
  12. {
  13. InitLog();
  14. InitNFS();
  15. }
  16. static void InitLog()
  17. {
  18. R.Log = new Log();
  19. R.Log.SetWriteFile(true, "Oreo.PCMonitor.Log");
  20. R.Log.LogLevel = LogLevel.All;
  21. //Log.AllocConsole();
  22. }
  23. static void InitNFS()
  24. {
  25. R.NFS = new Services.NetFlowService();
  26. R.NFS.Start();
  27. }
  28. }
  29. }