Skip to content
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

Macro SPDLOG_LEVEL_NAME_xxxx is namespace when outside of spdlog #2022

Closed
ashley-b opened this issue Jul 29, 2021 · 1 comment
Closed

Macro SPDLOG_LEVEL_NAME_xxxx is namespace when outside of spdlog #2022

ashley-b opened this issue Jul 29, 2021 · 1 comment

Comments

@ashley-b
Copy link

When I use the log level names in user code it can not be found. I get the following error.

error: use of undeclared identifier 'string_view_t' 

This use to work in older version's.
Looks like string_view_t should be spdlog::string_view_t

#define SPDLOG_LEVEL_NAME_TRACE string_view_t("trace", 5)
#define SPDLOG_LEVEL_NAME_DEBUG string_view_t("debug", 5)
#define SPDLOG_LEVEL_NAME_INFO string_view_t("info", 4)
#define SPDLOG_LEVEL_NAME_WARNING string_view_t("warning", 7)
#define SPDLOG_LEVEL_NAME_ERROR string_view_t("error", 5)
#define SPDLOG_LEVEL_NAME_CRITICAL string_view_t("critical", 8)
#define SPDLOG_LEVEL_NAME_OFF string_view_t("off", 3)

@gabime gabime closed this as completed in 1478358 Jul 29, 2021
@gabime
Copy link
Owner

gabime commented Jul 29, 2021

Fixed. Thanks for reporting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants