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
1b8bf35a
Commit
1b8bf35a
authored
Oct 05, 2018
by
gabime
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Micro optimize: don't init log_msg.msg_id on construction. It will be set anyway later
parent
aa47ac85
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
log_msg.h
include/spdlog/details/log_msg.h
+1
-1
pattern_formatter.h
include/spdlog/details/pattern_formatter.h
+2
-2
No files found.
include/spdlog/details/log_msg.h
View file @
1b8bf35a
...
...
@@ -39,7 +39,7 @@ struct log_msg
log_clock
::
time_point
time
;
size_t
thread_id
;
fmt
::
memory_buffer
raw
;
size_t
msg_id
{
0
}
;
size_t
msg_id
;
// info about wrapping the formatted text with color (updated by pattern_formatter).
mutable
size_t
color_range_start
{
0
};
...
...
include/spdlog/details/pattern_formatter.h
View file @
1b8bf35a
...
...
@@ -714,11 +714,11 @@ private:
case
(
'P'
):
formatters_
.
push_back
(
details
::
make_unique
<
details
::
pid_formatter
>
());
break
;
#ifdef SPDLOG_ENABLE_MESSAGE_COUNTER
case
(
'i'
):
formatters_
.
push_back
(
details
::
make_unique
<
details
::
i_formatter
>
());
break
;
#endif
case
(
'^'
):
formatters_
.
push_back
(
details
::
make_unique
<
details
::
color_start_formatter
>
());
break
;
...
...
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