Closed Rullec closed 4 years ago
spdlog uses the fmt library to format its log messages.
The fmt library supports opereator<<(std::ostream &, T&)
, but it is an extension.
Please add #include "spdlog/fmt/ostr.h"
to enable this feature.
spdlog uses the fmt library to format its log messages.
The fmt library supports
opereator<<(std::ostream &, T&)
, but it is an extension. Please add#include "spdlog/fmt/ostr.h"
to enable this feature.
Thanks for your quick reply, I will try it quickly now in otrder to give a feedback.
It works, thanks!
It works, thanks!
Hi, How can i set the precision of each element in a Matrix? Looking forward to your reply.
spdlog uses the fmt library to format its log messages.
The fmt library supports
opereator<<(std::ostream &, T&)
, but it is an extension. Please add#include "spdlog/fmt/ostr.h"
to enable this feature.
Hi, I came across the same problem, the method above works well in version 1.10.0, but faild in version 1.14.1
including the same header seems to fail format Eigen Matrix4d in spdlog v1.14.1. same issue here!!
#include "spdlog/fmt/ostr.h"
including the same header seems to fail format Eigen Matrix4d in spdlog v1.14.1. same issue here!!
#include "spdlog/fmt/ostr.h"
@Orwlit Should you define fmt::ostream_formatter
.
See: https://github.com/gabime/spdlog/issues/3097#issuecomment-2132446276
Hi all,
Thanks for your attention.
According to lots of guys mentioned before, If "<<" is supported by one type, it can certainly be printed out by
spdlog
.1. Question
Current I'm using
Eigen
this linear algebra library in my project. And I am eager to print out someEigen::Vector3d
inspdlog
.For example:
But I got the following compilation error:
2. Possible Solution?
Eigen
, why ourspdlog
can not prints these variables out?Any suggestion is appreciated! ;-)