Skip to content

add daily sink filename format - #1847

Merged
gabime merged 6 commits into
gabime:v1.xfrom
fawdlstty:v1.x
Feb 26, 2021
Merged

add daily sink filename format#1847
gabime merged 6 commits into
gabime:v1.xfrom
fawdlstty:v1.x

Conversation

@fawdlstty

Copy link
Copy Markdown
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

Comment thread include/spdlog/sinks/daily_file_sink.h Outdated
Comment thread include/spdlog/sinks/daily_file_sink.h Outdated
@fawdlstty
fawdlstty requested a review from gabime February 26, 2021 02:10
@gabime
gabime merged commit 2686ae2 into gabime:v1.x Feb 26, 2021
@gabime

gabime commented Feb 26, 2021

Copy link
Copy Markdown
Owner

Thanks @fawdlstty . Merged.

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