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
2ac49b90
Commit
2ac49b90
authored
Nov 07, 2014
by
gabi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug fix in registry
parent
1814c31f
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
1 deletion
+3
-1
bench.cpp
example/bench.cpp
+1
-1
logger_impl.h
include/spdlog/details/logger_impl.h
+1
-0
registry.h
include/spdlog/details/registry.h
+1
-0
No files found.
example/bench.cpp
View file @
2ac49b90
...
...
@@ -126,7 +126,7 @@ void bench_mt(int howmany, std::shared_ptr<spdlog::logger> log, int thread_count
{
threads
.
push_back
(
std
::
thread
([
&
]()
{
while
(
true
)
for
(;;
)
{
int
counter
=
++
msg_counter
;
if
(
counter
>
howmany
)
break
;
...
...
include/spdlog/details/logger_impl.h
View file @
2ac49b90
...
...
@@ -37,6 +37,7 @@ inline spdlog::logger::logger(const std::string& logger_name, const It& begin, c
_sinks
(
begin
,
end
),
_formatter
(
std
::
make_shared
<
pattern_formatter
>
(
"%+"
))
{
// no support under vs2013 for member initialization for std::atomic
_level
=
level
::
INFO
;
}
...
...
include/spdlog/details/registry.h
View file @
2ac49b90
...
...
@@ -60,6 +60,7 @@ public:
return
found
->
second
;
auto
new_logger
=
std
::
make_shared
<
logger
>
(
logger_name
,
sinks_begin
,
sinks_end
);
if
(
_formatter
)
new_logger
->
set_formatter
(
_formatter
);
new_logger
->
set_level
(
_level
);
_loggers
[
logger_name
]
=
new_logger
;
...
...
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