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
d315bba1
Commit
d315bba1
authored
Mar 29, 2017
by
Oleksii Mandrychenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Initialising members via constructor
parent
b5d838cc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
include/spdlog/details/logger_impl.h
include/spdlog/details/logger_impl.h
+4
-4
include/spdlog/logger.h
include/spdlog/logger.h
+1
-1
No files found.
include/spdlog/details/logger_impl.h
View file @
d315bba1
...
...
@@ -18,11 +18,11 @@ template<class It>
inline
spdlog
::
logger
::
logger
(
const
std
::
string
&
logger_name
,
const
It
&
begin
,
const
It
&
end
)
:
_name
(
logger_name
),
_sinks
(
begin
,
end
),
_formatter
(
std
::
make_shared
<
pattern_formatter
>
(
"%+"
))
_formatter
(
std
::
make_shared
<
pattern_formatter
>
(
"%+"
)),
_level
(
level
::
info
),
_flush_level
(
level
::
off
),
_last_err_time
(
0
)
{
_level
=
level
::
info
;
_flush_level
=
level
::
off
;
_last_err_time
=
0
;
_err_handler
=
[
this
](
const
std
::
string
&
msg
)
{
this
->
_default_err_handler
(
msg
);
...
...
include/spdlog/logger.h
View file @
d315bba1
...
...
@@ -87,7 +87,7 @@ protected:
spdlog
::
level_t
_level
;
spdlog
::
level_t
_flush_level
;
log_err_handler
_err_handler
;
std
::
atomic
<
time_t
>
_last_err_time
{
0
};
// init atomic value to avoid reads of uninitialised memory
std
::
atomic
<
time_t
>
_last_err_time
;
};
}
...
...
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