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

Expend support for any std::chrono::duration in spdlog::flush_every #2439

Merged
merged 1 commit into from
Jul 17, 2022

Conversation

LucasChollet
Copy link
Contributor

This allows things like:

spdlog::flush_every(std::chrono::minutes(10));
spdlog::flush_every(std::chrono::milliseconds(100));

Copy link
Owner

@gabime gabime left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. Looks good. Please revet the changes in the test

tests/test_async.cpp Outdated Show resolved Hide resolved
This allows things like:

spdlog::flush_every(std::chrono::minutes(10));
spdlog::flush_every(std::chrono::milliseconds(100));
@LucasChollet
Copy link
Contributor Author

LucasChollet commented Jul 17, 2022

I removed SPDLOG_API from spdlog::flush_every declaration and replace it with inline.
It solves the CI issue.

@gabime gabime merged commit 8348406 into gabime:v1.x Jul 17, 2022
@gabime
Copy link
Owner

gabime commented Jul 17, 2022

Thanks @LucasChollet

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

Successfully merging this pull request may close these issues.

2 participants