诸暨麻将添加redis
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

124 line
5.5 KiB

  1. // Copyright(c) 2015-present, Gabi Melman & spdlog contributors.
  2. // Distributed under the MIT License (http://opensource.org/licenses/MIT)
  3. #pragma once
  4. ///////////////////////////////////////////////////////////////////////////////
  5. //
  6. // Edit this file to squeeze more performance, and to customize supported
  7. // features
  8. //
  9. ///////////////////////////////////////////////////////////////////////////////
  10. ///////////////////////////////////////////////////////////////////////////////
  11. // Under Linux, the much faster CLOCK_REALTIME_COARSE clock can be used.
  12. // This clock is less accurate - can be off by dozens of millis - depending on
  13. // the kernel HZ.
  14. // Uncomment to use it instead of the regular clock.
  15. //
  16. // #define SPDLOG_CLOCK_COARSE
  17. ///////////////////////////////////////////////////////////////////////////////
  18. ///////////////////////////////////////////////////////////////////////////////
  19. // Uncomment if thread id logging is not needed (i.e. no %t in the log pattern).
  20. // This will prevent spdlog from querying the thread id on each log call.
  21. //
  22. // WARNING: If the log pattern contains thread id (i.e, %t) while this flag is
  23. // on, the result is undefined.
  24. //
  25. // #define SPDLOG_NO_THREAD_ID
  26. ///////////////////////////////////////////////////////////////////////////////
  27. ///////////////////////////////////////////////////////////////////////////////
  28. // Uncomment to prevent spdlog from using thread local storage.
  29. //
  30. // WARNING: if your program forks, UNCOMMENT this flag to prevent undefined
  31. // thread ids in the children logs.
  32. //
  33. // #define SPDLOG_NO_TLS
  34. ///////////////////////////////////////////////////////////////////////////////
  35. ///////////////////////////////////////////////////////////////////////////////
  36. // Uncomment if logger name logging is not needed.
  37. // This will prevent spdlog from copying the logger name on each log call.
  38. //
  39. // #define SPDLOG_NO_NAME
  40. ///////////////////////////////////////////////////////////////////////////////
  41. ///////////////////////////////////////////////////////////////////////////////
  42. // Uncomment to avoid spdlog's usage of atomic log levels
  43. // Use only if your code never modifies a logger's log levels concurrently by
  44. // different threads.
  45. //
  46. // #define SPDLOG_NO_ATOMIC_LEVELS
  47. ///////////////////////////////////////////////////////////////////////////////
  48. ///////////////////////////////////////////////////////////////////////////////
  49. // Uncomment to enable usage of wchar_t for file names on Windows.
  50. //
  51. // #define SPDLOG_WCHAR_FILENAMES
  52. ///////////////////////////////////////////////////////////////////////////////
  53. ///////////////////////////////////////////////////////////////////////////////
  54. // Uncomment to override default eol ("\n" or "\r\n" under Linux/Windows)
  55. //
  56. // #define SPDLOG_EOL ";-)\n"
  57. ///////////////////////////////////////////////////////////////////////////////
  58. ///////////////////////////////////////////////////////////////////////////////
  59. // Uncomment to use your own copy of the fmt library instead of spdlog's copy.
  60. // In this case spdlog will try to include <fmt/format.h> so set your -I flag
  61. // accordingly.
  62. //
  63. // #define SPDLOG_FMT_EXTERNAL
  64. ///////////////////////////////////////////////////////////////////////////////
  65. ///////////////////////////////////////////////////////////////////////////////
  66. // Uncomment to enable wchar_t support (convert to utf8)
  67. //
  68. // #define SPDLOG_WCHAR_TO_UTF8_SUPPORT
  69. ///////////////////////////////////////////////////////////////////////////////
  70. ///////////////////////////////////////////////////////////////////////////////
  71. // Uncomment to prevent child processes from inheriting log file descriptors
  72. //
  73. // #define SPDLOG_PREVENT_CHILD_FD
  74. ///////////////////////////////////////////////////////////////////////////////
  75. ///////////////////////////////////////////////////////////////////////////////
  76. // Uncomment to customize level names (e.g. "MT TRACE")
  77. //
  78. // #define SPDLOG_LEVEL_NAMES { "MY TRACE", "MY DEBUG", "MY INFO", "MY WARNING",
  79. // "MY ERROR", "MY CRITICAL", "OFF" }
  80. ///////////////////////////////////////////////////////////////////////////////
  81. ///////////////////////////////////////////////////////////////////////////////
  82. // Uncomment to customize short level names (e.g. "MT")
  83. // These can be longer than one character.
  84. //
  85. // #define SPDLOG_SHORT_LEVEL_NAMES { "T", "D", "I", "W", "E", "C", "O" }
  86. ///////////////////////////////////////////////////////////////////////////////
  87. ///////////////////////////////////////////////////////////////////////////////
  88. // Uncomment to disable default logger creation.
  89. // This might save some (very) small initialization time if no default logger is needed.
  90. //
  91. // #define SPDLOG_DISABLE_DEFAULT_LOGGER
  92. ///////////////////////////////////////////////////////////////////////////////
  93. ///////////////////////////////////////////////////////////////////////////////
  94. // Uncomment and set to compile time level with zero cost (default is INFO).
  95. // Macros like SPDLOG_DEBUG(..), SPDLOG_INFO(..) will expand to empty statements if not enabled
  96. //
  97. // #define SPDLOG_ACTIVE_LEVEL SPDLOG_LEVEL_INFO
  98. ///////////////////////////////////////////////////////////////////////////////
  99. ///////////////////////////////////////////////////////////////////////////////
  100. // Uncomment (and change if desired) macro to use for function names.
  101. // This is compiler dependent.
  102. // __PRETTY_FUNCTION__ might be nicer in clang/gcc, and __FUNCTION__ in msvc.
  103. // Defaults to __FUNCTION__ (should work on all compilers) if not defined.
  104. //
  105. // #define SPDLOG_FUNCTION __PRETTY_FUNCTION__
  106. ///////////////////////////////////////////////////////////////////////////////