tt4g
tt4g
Run `ctest` command. ```bash $ cmake . $ ctest # Run test target. $ ctest spdlog-utests ``` Note the only spdlog test targets are `spdlog-utests` and `spdlog-utests-ho` (cannot only run...
Who is locking the files? Exclusive file lock is an operation performed to prevent another process from being allowed to modify a file. The scene of exclusive locking on log...
Read unclosed issues or analyze the source code.
Since `qt_sink` passes log messages to `QObject*`, it is assumed that spdlog does not guarantee the log order. `qt_sink` calls `QMetaObject::invokeMethod()`, which seems to forward method calls to the main...
> Or, is it a good idea to rewrite `sink_it_` by call `append` from `QTextEdit` directly? Not from `QMetaObject::invokeMethod()` As pointed out by many sites when checked by search engines,...
This is because `_editor->setTextColor(Qt::red);` is called from a non-main thread. There is no guarantee that it will work correctly. And `spdlog::sinks::qt_sink::sink_it_(msg);` writes the log message after moving to the main...
I don't remember seeing such a topic in `README.md`.
This change comes from #2752. The comment has been changed because spdlog is not responsible for Qt lifetime management.
I'm sure there are people who know a lot about Qt on the Qt forum and StackOverflow, so it's better to ask there.
Duplicate #2782 spdlog v1.11.0 and earlier are incompatible with fmt v10.