You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I upgrade from spdlog 0.16.4-rc, to 1.8.1 (Checked out from master, on 2020.11.18: #eebb921)
In the previous version, I was getting colored console output via 'spdlog::sinks::wincolor_stdout_sink_mt'.
After the upgrade, the console output is now black and white.
I was using the previous version as header only. The new version, I'm using as shared library.
I include the header like this:
Please document somewhere whenever you make a semantic change to things. If something works one way, and then works a different way, you should write that, somewhere.
In a pattern, %i used to mean sequence number. Now, is some delta time. When upgrading, that behabior goes from looking like sequence of numbers to random numbers.
You used to be able to set a color, and that color would apply to the output line. Now, you have to set color delimiters to the formatter to take color into effect. Without the delimiters, set_color() is pointless.
Before, you could create a list of sinks in an array, and create loggers based on that list, and set different patterns for the loggers. Now, the patterns are attached to the sinks, even though they are called like logger::set_pattern (why?!); so the effect is that the last pattern will override the previous ones, even though they are for different loggers, because they are attached to the sinks, not the loggers.
Imagine making a bunch of changes to your codebase, and upgrading the logging framework in the process, and then running into all 3 behavior changes. Of course, you'll blame your work code, and spend time chasing ghosts. That is very confusing.
Hi,
I upgrade from spdlog 0.16.4-rc, to 1.8.1 (Checked out from master, on 2020.11.18: #eebb921)
In the previous version, I was getting colored console output via 'spdlog::sinks::wincolor_stdout_sink_mt'.
After the upgrade, the console output is now black and white.
I was using the previous version as header only. The new version, I'm using as shared library.
I include the header like this:
This is all in Windows 10, 64bit. MSVC 2019, v16.8
Any ideas what I can try so that I can get color output back?
The text was updated successfully, but these errors were encountered: