-
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
ANSI escape sequences multiplatform (win10, linux) #3111
Comments
Related #3103 wincolor_sink is already provided that uses the old Windows color output API. See wiki: https://github.com/gabime/spdlog/wiki/4.-Sinks#implementing-your-own-sink stdout_color_sink and stderr_color_sink, introduced in spdlog/include/spdlog/sinks/stdout_color_sinks.h Lines 14 to 27 in c3aed4b
|
Unfortunately, the ANSI color sinks are not included in the static/shared library build of spdlog on Windows. The headers are there, but the implementation is missing, so trying to use these sinks results in a linker error. Looking at the source code, they should indeed work on Windows, so perhaps they should be included unconditionally in the build? A workaround is to include both I have opened a new issue to cover this and other problems using this on Windows: #3138. |
Hello, It there a way to have colors set up as
trace and debug — full line gray (GRAY = "\033[90m"), not just from
%^
to%$
, but full lineinfo, warn, error, critical — full line white (normal), only the level tag is colored (default colors and a pattern se up as
%^%l%$
are ok)The text was updated successfully, but these errors were encountered: