I would like to add some extra data to my log output depending on where it was logged. For instance I might have System A and System B, both spitting out log data, but perhaps I'm only interested in System B's log lines now so I could filter based…
I have a simple CMake project and try to use the spdlog library (version 1.5.0) installed by conan.
But when building I get the following error:
undefined reference to `spdlog::get(std::__cxx11::basic_string,…
I have two loggers in my program. One that I made inside a gui, and one that is super complicated but very well designed and prints to the console. I am trying to get the output from the nice console logger to the rendered one. I have tried…
Is there a way to extend spdlog to support a custom struct as an item when formatting using {}?
So when I have a
struct p {
int x;
int y;
int z;
};
p my_p;
I want to do
spdlog::info("p = {}", my_p);
// after registering some kind of…
I'm using spdlog to log all messages. My log pattern is a JSON format. I'm escaping messages manually in all log calls. Is there any way exists to escape messages automatically in spdlog layer?
Sample of manually…
I want to configure the logger in another file, but when I do this, the logger doesn't add anything to this file. Why? For simplicity I got the following example from the library documentation(the function body).
*.cpp
namespace logger
{
void…
Code Repository: https://github.com/fastype/fastype
This project use build.bat initialize on Windows 10 with Visual Studio 2017. It will clone the github repositories and build third party dependencies, then create visual studio sln project file via…
I have installed spdlog manually from git repo having version 1.3.1 in version.h . Now i am trying to execute basic examples given in the repository but they are giving certain errors. Synchronous loggers example are running fine though.
I have…
I am using spdlog with a registry application. I am getting an exception when attempting to log a single wchar_t string containing a reprentation of a CLSID, say "{0C092C21-882C-11CF-A6BB-080C7B2D682}". I understand that in spdlog "{}" is a…
I am trying to integrate spdlog, a header only logging library into a C++ project but I am having trouble getting CMake to recognise the include paths properly. I am using the latest CLion with CMake 3.10.2 on Ubuntu 18.04.
My project structure…
I'm trying to use spdlog as a logging library, but I do not want to use my package manager (apt) to install it. I have copied the spdlog directory under include to the root of my project directory, but when I try to compile I get include errors…
I am trying to use spdlog library in an hello world.
#include "spdlog/spdlog.h"
int main()
{
return 0;
}
Since it is "header only" library I just copied it to my project's root and expected everything to just work.
|+ hello.cpp …
I have a C++ desktop app that can log messages using the 'spdlog' library (https://github.com/gabime/spdlog). Now, I'd like to use the same logger from a dynamically loaded DLL. However, when I try to use spdlog from the DLL, I get a crash.
How can…
I am using spdlog library for C++ logging. I have a logger with both stdout and rotating_file_sink_mt sincs:
auto std_out_sinc = std::make_shared();
auto file_sinc =…