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.

tweakme.h 4.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. //
  2. // Copyright(c) 2015 Gabi Melman.
  3. // Distributed under the MIT License (http://opensource.org/licenses/MIT)
  4. //
  5. #pragma once
  6. ///////////////////////////////////////////////////////////////////////////////
  7. //
  8. // Edit this file to squeeze more performance, and to customize supported features
  9. //
  10. ///////////////////////////////////////////////////////////////////////////////
  11. ///////////////////////////////////////////////////////////////////////////////
  12. // Under Linux, the much faster CLOCK_REALTIME_COARSE clock can be used.
  13. // This clock is less accurate - can be off by dozens of millis - depending on the kernel HZ.
  14. // Uncomment to use it instead of the regular clock.
  15. //
  16. // #define SPDLOG_CLOCK_COARSE
  17. ///////////////////////////////////////////////////////////////////////////////
  18. ///////////////////////////////////////////////////////////////////////////////
  19. // Uncomment if date/time logging is not needed and never appear in the log pattern.
  20. // This will prevent spdlog from quering the clock on each log call.
  21. //
  22. // WARNING: If the log pattern contains any date/time while this flag is on, the result is undefined.
  23. // You must set new pattern(spdlog::set_pattern(..") without any date/time in it
  24. //
  25. // #define SPDLOG_NO_DATETIME
  26. ///////////////////////////////////////////////////////////////////////////////
  27. ///////////////////////////////////////////////////////////////////////////////
  28. // Uncomment if thread id logging is not needed (i.e. no %t in the log pattern).
  29. // This will prevent spdlog from quering the thread id on each log call.
  30. //
  31. // WARNING: If the log pattern contains thread id (i.e, %t) while this flag is on, the result is undefined.
  32. //
  33. // #define SPDLOG_NO_THREAD_ID
  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 enable the SPDLOG_DEBUG/SPDLOG_TRACE macros.
  43. //
  44. // #define SPDLOG_DEBUG_ON
  45. // #define SPDLOG_TRACE_ON
  46. ///////////////////////////////////////////////////////////////////////////////
  47. ///////////////////////////////////////////////////////////////////////////////
  48. // Uncomment to avoid locking in the registry operations (spdlog::get(), spdlog::drop() spdlog::register()).
  49. // Use only if your code never modifes concurrently the registry.
  50. // Note that upon creating a logger the registry is modified by spdlog..
  51. //
  52. // #define SPDLOG_NO_REGISTRY_MUTEX
  53. ///////////////////////////////////////////////////////////////////////////////
  54. ///////////////////////////////////////////////////////////////////////////////
  55. // Uncomment to avoid spdlog's usage of atomic log levels
  56. // Use only if your code never modifies a logger's log levels concurrently by different threads.
  57. //
  58. // #define SPDLOG_NO_ATOMIC_LEVELS
  59. ///////////////////////////////////////////////////////////////////////////////
  60. ///////////////////////////////////////////////////////////////////////////////
  61. // Uncomment to enable usage of wchar_t for file names on Windows.
  62. //
  63. // #define SPDLOG_WCHAR_FILENAMES
  64. ///////////////////////////////////////////////////////////////////////////////
  65. ///////////////////////////////////////////////////////////////////////////////
  66. // Uncomment to override default eol ("\n" or "\r\n" under Linux/Windows)
  67. //
  68. // #define SPDLOG_EOL ";-)\n"
  69. ///////////////////////////////////////////////////////////////////////////////
  70. ///////////////////////////////////////////////////////////////////////////////
  71. // Uncomment to use your own copy of the fmt library instead of spdlog's copy.
  72. // In this case spdlog will try to include <fmt/format.h> so set your -I flag accordingly.
  73. //
  74. // #define SPDLOG_FMT_EXTERNAL
  75. ///////////////////////////////////////////////////////////////////////////////
  76. ///////////////////////////////////////////////////////////////////////////////
  77. // Uncomment to enable syslog (disabled by default)
  78. //
  79. // #define SPDLOG_ENABLE_SYSLOG
  80. ///////////////////////////////////////////////////////////////////////////////