Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

add daily sink filename format #1847

Merged
merged 6 commits into from
Feb 26, 2021
Merged

add daily sink filename format #1847

merged 6 commits into from
Feb 26, 2021

Conversation

fawdlstty
Copy link
Contributor

example:

std::shared_ptr<spdlog::logger> _logger = spdlog::daily_logger_format_mt ("module", "%Y%m%d.log");
_logger->info ("hahahaha");

then will create file 20210225.log

include/spdlog/sinks/daily_file_sink.h Outdated Show resolved Hide resolved
include/spdlog/sinks/daily_file_sink.h Outdated Show resolved Hide resolved
@gabime gabime merged commit 2686ae2 into gabime:v1.x Feb 26, 2021
@gabime
Copy link
Owner

gabime commented Feb 26, 2021

Thanks @fawdlstty . Merged.

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

Successfully merging this pull request may close these issues.

2 participants