types.h 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. // Copyright 2021 yuzu Emulator Project
  2. // Licensed under GPLv2 or any later version
  3. // Refer to the license.txt file included.
  4. #pragma once
  5. #include "common/common_types.h"
  6. namespace Common::Log {
  7. /// Specifies the severity or level of detail of the log message.
  8. enum class Level : u8 {
  9. Trace, ///< Extremely detailed and repetitive debugging information that is likely to
  10. ///< pollute logs.
  11. Debug, ///< Less detailed debugging information.
  12. Info, ///< Status information from important points during execution.
  13. Warning, ///< Minor or potential problems found during execution of a task.
  14. Error, ///< Major problems found during execution of a task that prevent it from being
  15. ///< completed.
  16. Critical, ///< Major problems during execution that threaten the stability of the entire
  17. ///< application.
  18. Count ///< Total number of logging levels
  19. };
  20. /**
  21. * Specifies the sub-system that generated the log message.
  22. *
  23. * @note If you add a new entry here, also add a corresponding one to `ALL_LOG_CLASSES` in
  24. * filter.cpp.
  25. */
  26. enum class Class : u8 {
  27. Log, ///< Messages about the log system itself
  28. Common, ///< Library routines
  29. Common_Filesystem, ///< Filesystem interface library
  30. Common_Memory, ///< Memory mapping and management functions
  31. Core, ///< LLE emulation core
  32. Core_ARM, ///< ARM CPU core
  33. Core_Timing, ///< CoreTiming functions
  34. Config, ///< Emulator configuration (including commandline)
  35. Debug, ///< Debugging tools
  36. Debug_Emulated, ///< Debug messages from the emulated programs
  37. Debug_GPU, ///< GPU debugging tools
  38. Debug_Breakpoint, ///< Logging breakpoints and watchpoints
  39. Debug_GDBStub, ///< GDB Stub
  40. Kernel, ///< The HLE implementation of the CTR kernel
  41. Kernel_SVC, ///< Kernel system calls
  42. Service, ///< HLE implementation of system services. Each major service
  43. ///< should have its own subclass.
  44. Service_ACC, ///< The ACC (Accounts) service
  45. Service_AM, ///< The AM (Applet manager) service
  46. Service_AOC, ///< The AOC (AddOn Content) service
  47. Service_APM, ///< The APM (Performance) service
  48. Service_ARP, ///< The ARP service
  49. Service_Audio, ///< The Audio (Audio control) service
  50. Service_BCAT, ///< The BCAT service
  51. Service_BGTC, ///< The BGTC (Background Task Controller) service
  52. Service_BPC, ///< The BPC service
  53. Service_BTDRV, ///< The Bluetooth driver service
  54. Service_BTM, ///< The BTM service
  55. Service_Capture, ///< The capture service
  56. Service_ERPT, ///< The error reporting service
  57. Service_ETicket, ///< The ETicket service
  58. Service_EUPLD, ///< The error upload service
  59. Service_Fatal, ///< The Fatal service
  60. Service_FGM, ///< The FGM service
  61. Service_Friend, ///< The friend service
  62. Service_FS, ///< The FS (Filesystem) service
  63. Service_GRC, ///< The game recording service
  64. Service_HID, ///< The HID (Human interface device) service
  65. Service_IRS, ///< The IRS service
  66. Service_LBL, ///< The LBL (LCD backlight) service
  67. Service_LDN, ///< The LDN (Local domain network) service
  68. Service_LDR, ///< The loader service
  69. Service_LM, ///< The LM (Logger) service
  70. Service_Migration, ///< The migration service
  71. Service_Mii, ///< The Mii service
  72. Service_MM, ///< The MM (Multimedia) service
  73. Service_NCM, ///< The NCM service
  74. Service_NFC, ///< The NFC (Near-field communication) service
  75. Service_NFP, ///< The NFP service
  76. Service_NGCT, ///< The NGCT (No Good Content for Terra) service
  77. Service_NIFM, ///< The NIFM (Network interface) service
  78. Service_NIM, ///< The NIM service
  79. Service_NPNS, ///< The NPNS service
  80. Service_NS, ///< The NS services
  81. Service_NVDRV, ///< The NVDRV (Nvidia driver) service
  82. Service_OLSC, ///< The OLSC service
  83. Service_PCIE, ///< The PCIe service
  84. Service_PCTL, ///< The PCTL (Parental control) service
  85. Service_PCV, ///< The PCV service
  86. Service_PM, ///< The PM service
  87. Service_PREPO, ///< The PREPO (Play report) service
  88. Service_PSC, ///< The PSC service
  89. Service_PSM, ///< The PSM service
  90. Service_SET, ///< The SET (Settings) service
  91. Service_SM, ///< The SM (Service manager) service
  92. Service_SPL, ///< The SPL service
  93. Service_SSL, ///< The SSL service
  94. Service_TCAP, ///< The TCAP service.
  95. Service_Time, ///< The time service
  96. Service_USB, ///< The USB (Universal Serial Bus) service
  97. Service_VI, ///< The VI (Video interface) service
  98. Service_WLAN, ///< The WLAN (Wireless local area network) service
  99. HW, ///< Low-level hardware emulation
  100. HW_Memory, ///< Memory-map and address translation
  101. HW_LCD, ///< LCD register emulation
  102. HW_GPU, ///< GPU control emulation
  103. HW_AES, ///< AES engine emulation
  104. IPC, ///< IPC interface
  105. Frontend, ///< Emulator UI
  106. Render, ///< Emulator video output and hardware acceleration
  107. Render_Software, ///< Software renderer backend
  108. Render_OpenGL, ///< OpenGL backend
  109. Render_Vulkan, ///< Vulkan backend
  110. Shader, ///< Shader recompiler
  111. Shader_SPIRV, ///< Shader SPIR-V code generation
  112. Shader_GLASM, ///< Shader GLASM code generation
  113. Shader_GLSL, ///< Shader GLSL code generation
  114. Audio, ///< Audio emulation
  115. Audio_DSP, ///< The HLE implementation of the DSP
  116. Audio_Sink, ///< Emulator audio output backend
  117. Loader, ///< ROM loader
  118. CheatEngine, ///< Memory manipulation and engine VM functions
  119. Crypto, ///< Cryptographic engine/functions
  120. Input, ///< Input emulation
  121. Network, ///< Network emulation
  122. WebService, ///< Interface to yuzu Web Services
  123. Count ///< Total number of logging classes
  124. };
  125. } // namespace Common::Log