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
8d758add
Commit
8d758add
authored
Jul 07, 2019
by
gabime
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Relace remaining const char* with string_view_t in the API
parent
506ab1c7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
include/spdlog/logger-inl.h
include/spdlog/logger-inl.h
+3
-3
include/spdlog/logger.h
include/spdlog/logger.h
+2
-2
No files found.
include/spdlog/logger-inl.h
View file @
8d758add
...
...
@@ -58,7 +58,7 @@ SPDLOG_INLINE void swap(logger &a, logger &b)
a
.
swap
(
b
);
}
SPDLOG_INLINE
void
logger
::
log
(
source_loc
loc
,
level
::
level_enum
lvl
,
const
char
*
msg
)
SPDLOG_INLINE
void
logger
::
log
(
source_loc
loc
,
level
::
level_enum
lvl
,
string_view_t
msg
)
{
if
(
!
should_log
(
lvl
))
{
...
...
@@ -67,7 +67,7 @@ SPDLOG_INLINE void logger::log(source_loc loc, level::level_enum lvl, const char
try
{
details
::
log_msg
log_msg
(
loc
,
string_view_t
(
name_
),
lvl
,
string_view_t
(
msg
)
);
details
::
log_msg
log_msg
(
loc
,
string_view_t
(
name_
),
lvl
,
msg
);
sink_it_
(
log_msg
);
}
catch
(
const
std
::
exception
&
ex
)
...
...
@@ -80,7 +80,7 @@ SPDLOG_INLINE void logger::log(source_loc loc, level::level_enum lvl, const char
}
}
SPDLOG_INLINE
void
logger
::
log
(
level
::
level_enum
lvl
,
const
char
*
msg
)
SPDLOG_INLINE
void
logger
::
log
(
level
::
level_enum
lvl
,
string_view_t
msg
)
{
log
(
source_loc
{},
lvl
,
msg
);
}
...
...
include/spdlog/logger.h
View file @
8d758add
...
...
@@ -97,8 +97,8 @@ public:
log
(
source_loc
{},
lvl
,
fmt
,
args
...);
}
void
log
(
source_loc
loc
,
level
::
level_enum
lvl
,
const
char
*
msg
);
void
log
(
level
::
level_enum
lvl
,
const
char
*
msg
);
void
log
(
source_loc
loc
,
level
::
level_enum
lvl
,
const
string_view_t
msg
);
void
log
(
level
::
level_enum
lvl
,
string_view_t
msg
);
template
<
typename
...
Args
>
void
trace
(
string_view_t
fmt
,
const
Args
&
...
args
)
...
...
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