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
d4cbb4ed
Unverified
Commit
d4cbb4ed
authored
Sep 17, 2021
by
Gabi Melman
Committed by
GitHub
Sep 17, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update logger.h
parent
8cc84b3e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
7 deletions
+2
-7
include/spdlog/logger.h
include/spdlog/logger.h
+2
-7
No files found.
include/spdlog/logger.h
View file @
d4cbb4ed
...
@@ -324,9 +324,7 @@ protected:
...
@@ -324,9 +324,7 @@ protected:
template
<
typename
...
Args
>
template
<
typename
...
Args
>
void
log_
(
source_loc
loc
,
level
::
level_enum
lvl
,
wstring_view_t
fmt
,
Args
&&
...
args
)
void
log_
(
source_loc
loc
,
level
::
level_enum
lvl
,
wstring_view_t
fmt
,
Args
&&
...
args
)
{
{
bool
log_enabled
=
should_log
(
lvl
);
if
(
!
should_log
(
lvl
))
bool
traceback_enabled
=
tracer_
.
enabled
();
if
(
!
log_enabled
)
{
{
return
;
return
;
}
}
...
@@ -348,9 +346,7 @@ protected:
...
@@ -348,9 +346,7 @@ protected:
template
<
class
T
,
typename
std
::
enable_if
<
std
::
is_convertible
<
const
T
&
,
spdlog
::
wstring_view_t
>
::
value
,
int
>::
type
=
0
>
template
<
class
T
,
typename
std
::
enable_if
<
std
::
is_convertible
<
const
T
&
,
spdlog
::
wstring_view_t
>
::
value
,
int
>::
type
=
0
>
void
log_
(
source_loc
loc
,
level
::
level_enum
lvl
,
const
T
&
msg
)
void
log_
(
source_loc
loc
,
level
::
level_enum
lvl
,
const
T
&
msg
)
{
{
bool
log_enabled
=
should_log
(
lvl
);
if
(
!
should_log
(
lvl
))
bool
traceback_enabled
=
tracer_
.
enabled
();
if
(
!
log_enabled
&&
!
traceback_enabled
)
{
{
return
;
return
;
}
}
...
@@ -370,7 +366,6 @@ protected:
...
@@ -370,7 +366,6 @@ protected:
// and save backtrace (if backtrace is enabled).
// and save backtrace (if backtrace is enabled).
virtual
void
sink_it_
(
const
details
::
log_msg
&
msg
);
virtual
void
sink_it_
(
const
details
::
log_msg
&
msg
);
virtual
void
flush_
();
virtual
void
flush_
();
void
dump_backtrace_
();
bool
should_flush_
(
const
details
::
log_msg
&
msg
);
bool
should_flush_
(
const
details
::
log_msg
&
msg
);
// handle errors during logging.
// handle errors during logging.
...
...
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