tt4g

Results 173 comments of tt4g
trafficstars

Try call `spdlog::shutdown()`.

Yes. `spdlog::shutdown()` should be called just before the application exit.

There are not many safe operations within the signal handler (see reference: [std::signal \- cppreference\.com](https://en.cppreference.com/w/cpp/utility/program/signal)). And spdlog does not support its use within signal handlers. One workaround is to use...

@qaler This is very simple example: ```cpp #include #include #include #include "spdlog/spdlog.h" static std::atomic signalReceived = false; void signal_handler(int signal) { signalReceived = true; } int main() { std::signal(SIGINT, signal_handler);...

Right. This is a specification. See Wiki: https://github.com/gabime/spdlog/wiki/3.-Custom-formatting#pattern-flags Another way. you can use `logger->log(spdlog::source_loc{__FILE__, __LINE__, SPDLOG_FUNCTION}, spdlog::level::trace, other arguments...)` instead of logging macro such as `SPDLOG_LOGGER_TRACE` and `SPDLOG_LOGGER_DEBUG`. https://github.com/gabime/spdlog/blob/v1.9.1/include/spdlog/spdlog.h#L291-L299

Logging macros (`SPDLOG_TRACE`, `SPDLOG_LOGGING_TRACE`, etc...) less than or equal to the log level of the `SPDLOG_ACTIVE_LEVEL` macro are converted to `(void) 0` in preprocessing, so there is no cost to...

spdlog requires C++11. In other words, if C++11 is supported, it can be used. Related: - #491 - #2069

The maintainer says "Not officially" (#491), and I don't know why it is not working as there is no error log and crash report.

As long as you use spdlog through CMake, the `SPDLOG_FMT_EXTERNAL` macro is defined, so there is no need to change `tweakme.h`. https://github.com/gabime/spdlog/blob/b75edfafca581e33be29ab51b9546b2e955c2853/CMakeLists.txt#L197-L198 Sounds like a conan issue, you might want...