types.h 6.4 KB

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