Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
spdlog
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
spdlog
Commits
3135b6a3
Unverified
Commit
3135b6a3
authored
Feb 26, 2021
by
Gabi Melman
Committed by
GitHub
Feb 26, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update comment
parent
2686ae23
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
include/spdlog/sinks/daily_file_sink.h
include/spdlog/sinks/daily_file_sink.h
+3
-2
No files found.
include/spdlog/sinks/daily_file_sink.h
View file @
3135b6a3
...
...
@@ -38,13 +38,14 @@ struct daily_filename_calculator
};
/*
* Generator of daily log file names by formatting
* Generator of daily log file names with strftime support.
* For example "myfile_Y_%m_%d.log"
*/
struct
daily_filename_format_calculator
{
// Create filename by formatting %Y_%m_%d.log
static
filename_t
calc_filename
(
const
filename_t
&
filename
,
const
tm
&
now_tm
)
{
// generate fmt datetime format string, e.g. {:%Y-%m-%d}.
filename_t
fmt_filename
=
fmt
::
format
(
SPDLOG_FILENAME_T
(
"{{:{}}}"
),
filename
);
return
fmt
::
format
(
fmt_filename
,
now_tm
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment