Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
S
spdlog
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
spdlog
Commits
cbc4db86
Commit
cbc4db86
authored
Jul 07, 2018
by
gabime
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Renamed filename and other small formatter changes
parent
b07069fb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
pattern_formatter.h
include/spdlog/details/pattern_formatter.h
+3
-4
No files found.
include/spdlog/details/pattern_formatter
_impl
.h
→
include/spdlog/details/pattern_formatter.h
View file @
cbc4db86
...
...
@@ -176,7 +176,6 @@ class d_formatter SPDLOG_FINAL : public flag_formatter
{
void
format
(
const
details
::
log_msg
&
,
const
std
::
tm
&
tm_time
,
fmt
::
memory_buffer
&
dest
)
override
{
// fmt::format_to(dest, "{:02}", tm_time.tm_mday);
fmt_helper
::
pad2
(
tm_time
.
tm_mday
,
dest
);
}
};
...
...
@@ -265,7 +264,7 @@ class p_formatter SPDLOG_FINAL : public flag_formatter
{
void
format
(
const
details
::
log_msg
&
,
const
std
::
tm
&
tm_time
,
fmt
::
memory_buffer
&
dest
)
override
{
fmt
::
format_to
(
dest
,
"{}"
,
ampm
(
tm_time
)
);
fmt
_helper
::
append_c_str
(
ampm
(
tm_time
),
dest
);
}
};
...
...
@@ -274,13 +273,13 @@ class r_formatter SPDLOG_FINAL : public flag_formatter
{
void
format
(
const
details
::
log_msg
&
,
const
std
::
tm
&
tm_time
,
fmt
::
memory_buffer
&
dest
)
override
{
// fmt::format_to(dest, "{:02}:{:02}:{:02} {}", to12h(tm_time), tm_time.tm_min, tm_time.tm_sec, ampm(tm_time));
fmt_helper
::
pad2
(
to12h
(
tm_time
),
dest
);
dest
.
push_back
(
':'
);
fmt_helper
::
pad2
(
tm_time
.
tm_min
,
dest
);
dest
.
push_back
(
':'
);
fmt_helper
::
pad2
(
tm_time
.
tm_sec
,
dest
);
fmt
::
format_to
(
dest
,
" {}"
,
ampm
(
tm_time
));
dest
.
push_back
(
' '
);
fmt_helper
::
append_c_str
(
ampm
(
tm_time
),
dest
);
}
};
...
...
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