LogDefine.cs 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. using XGame.Framework.Define;
  2. namespace XGame.Framework.Logger
  3. {
  4. internal static class LogDefine
  5. {
  6. /// <summary>
  7. /// log的缓存上限
  8. /// </summary>
  9. public const uint CacheCapacityLimit = 64 * 1024;
  10. /// <summary>
  11. /// log文件的后缀
  12. /// </summary>
  13. public const string FileExtension = ".log";
  14. /// <summary>
  15. /// 日志的根目录
  16. /// </summary>
  17. public static string LogRootPath = $"{PathDefine.PersistentDataPath}/Logs";
  18. /// <summary>
  19. /// 代码日志路径
  20. /// </summary>
  21. public static string CodeLogPath = $"{LogRootPath}/Code";
  22. /// <summary>
  23. /// 事件日志路径
  24. /// </summary>
  25. public static string EventLogPath = $"{LogRootPath}/Event";
  26. /// <summary>
  27. /// 代码日志MemoryFile文件路径
  28. /// </summary>
  29. public static string CodeMMFPath = $"{LogRootPath}/codelogmemory.bytes";
  30. /// <summary>
  31. /// 事件日志MemoryFile文件路径
  32. /// </summary>
  33. public static string EventMMFPath = $"{LogRootPath}/eventlogmemory.bytes";
  34. }
  35. }