-
Notifications
You must be signed in to change notification settings - Fork 4.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
spdlog 1.x版本中msvc fmt #3025
Comments
fmt v10 will not be bundled in v1.x branch. |
目前fmt 10.2.1已经可以兼容了 |
As far as I know, fmt v10 has been reverted by 4338b9c and there will be no update to fmt v10. |
我目前的用法是使用msvc2022 编译spdlog,出现大量的warning,然后我替换了10.2.1的fmt之后就没有warning了,而且能够正常输出,稍后我再重新弄个纯净的版本验证一下,多谢您的回复。 |
I can't answer the MSVC warning because it is fmt related, not spdlog. |
This is duplicate #2510 Since spdlog is calling the Windows API, you must pass the character encoding that the Windows API requires. Should use
void testspd::OnInitDialog()
{
spdlog::set_level(spdlog::level::trace);
spdlog::flush_on(spdlog::level::trace);
QString path{QString("%1/logs/daily.log").arg(qApp->applicationDirPath())};
-auto daily_logger = spdlog::daily_logger_format_mt("mt",path.toStdString());
+auto daily_logger = spdlog::daily_logger_format_mt("mt",path.toLocal8Bit().data());
daily_logger->debug("fuck");
} |
-auto daily_logger = spdlog::daily_logger_format_mt("mt",path.toStdString()); |
fmt warnings cannot be resolved by spdlog. |
spdlog 1.x分支下的fmt内容没有更新,虽然对应的spdlog已经更新但是include/spdlog/fmt/bound下的内容没有更新不知道是我用错了分支还是博主忘记了更新。by 2024-02-27
The text was updated successfully, but these errors were encountered: