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
5b0b8579
Commit
5b0b8579
authored
Mar 22, 2020
by
gabime
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix #1485 by removing SPDLOG_NO_NAME option
parent
c927de13
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
10 deletions
+2
-10
include/spdlog/pattern_formatter-inl.h
include/spdlog/pattern_formatter-inl.h
+2
-3
include/spdlog/tweakme.h
include/spdlog/tweakme.h
+0
-7
No files found.
include/spdlog/pattern_formatter-inl.h
View file @
5b0b8579
...
...
@@ -933,16 +933,15 @@ public:
dest
.
push_back
(
']'
);
dest
.
push_back
(
' '
);
#ifndef SPDLOG_NO_NAME
// append logger name if exists
if
(
msg
.
logger_name
.
size
()
>
0
)
{
dest
.
push_back
(
'['
);
// fmt_helper::append_str(*msg.logger_name, dest);
fmt_helper
::
append_string_view
(
msg
.
logger_name
,
dest
);
dest
.
push_back
(
']'
);
dest
.
push_back
(
' '
);
}
#endif
dest
.
push_back
(
'['
);
// wrap the level name with color
msg
.
color_range_start
=
dest
.
size
();
...
...
include/spdlog/tweakme.h
View file @
5b0b8579
...
...
@@ -38,13 +38,6 @@
// #define SPDLOG_NO_TLS
///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
// Uncomment if logger name logging is not needed.
// This will prevent spdlog from copying the logger name on each log call.
//
// #define SPDLOG_NO_NAME
///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
// Uncomment to avoid spdlog's usage of atomic log levels
// Use only if your code never modifies a logger's log levels concurrently by
...
...
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