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
91264ea2
Commit
91264ea2
authored
Jun 26, 2018
by
gabime
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
small improvment to formatter
parent
e66ee8b7
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
include/spdlog/details/fmt_helper.h
include/spdlog/details/fmt_helper.h
+6
-2
include/spdlog/details/pattern_formatter_impl.h
include/spdlog/details/pattern_formatter_impl.h
+0
-1
No files found.
include/spdlog/details/fmt_helper.h
View file @
91264ea2
...
...
@@ -16,8 +16,12 @@ inline void append_str(const std::string &str, fmt::memory_buffer &dest)
inline
void
append_c_str
(
const
char
*
c_str
,
fmt
::
memory_buffer
&
dest
)
{
auto
str_size
=
strlen
(
c_str
);
dest
.
append
(
c_str
,
c_str
+
str_size
);
char
ch
;
while
((
ch
=
*
c_str
)
!=
'\0'
)
{
dest
.
push_back
(
ch
);
++
c_str
;
}
}
inline
void
append_buf
(
const
fmt
::
memory_buffer
&
buf
,
fmt
::
memory_buffer
&
dest
)
...
...
include/spdlog/details/pattern_formatter_impl.h
View file @
91264ea2
...
...
@@ -506,7 +506,6 @@ class full_formatter SPDLOG_FINAL : public flag_formatter
#endif
dest
.
push_back
(
'['
);
// wrap the level name with color
msg
.
color_range_start
=
dest
.
size
();
fmt_helper
::
append_c_str
(
level
::
to_str
(
msg
.
level
),
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