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
e98265a4
Commit
e98265a4
authored
Jul 19, 2021
by
gabime
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cosmetic reorder of logger funcs definitions
parent
e87f69bd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
72 additions
and
73 deletions
+72
-73
include/spdlog/logger.h
include/spdlog/logger.h
+72
-73
No files found.
include/spdlog/logger.h
View file @
e98265a4
...
...
@@ -72,7 +72,6 @@ public:
logger
(
const
logger
&
other
);
logger
(
logger
&&
other
)
SPDLOG_NOEXCEPT
;
logger
&
operator
=
(
logger
other
)
SPDLOG_NOEXCEPT
;
void
swap
(
spdlog
::
logger
&
other
)
SPDLOG_NOEXCEPT
;
template
<
typename
FormatString
,
typename
...
Args
>
...
...
@@ -87,42 +86,6 @@ public:
log
(
source_loc
{},
lvl
,
fmt
,
std
::
forward
<
Args
>
(
args
)...);
}
template
<
typename
FormatString
,
typename
...
Args
>
void
trace
(
const
FormatString
&
fmt
,
Args
&&
...
args
)
{
log
(
level
::
trace
,
fmt
,
std
::
forward
<
Args
>
(
args
)...);
}
template
<
typename
FormatString
,
typename
...
Args
>
void
debug
(
const
FormatString
&
fmt
,
Args
&&
...
args
)
{
log
(
level
::
debug
,
fmt
,
std
::
forward
<
Args
>
(
args
)...);
}
template
<
typename
FormatString
,
typename
...
Args
>
void
info
(
const
FormatString
&
fmt
,
Args
&&
...
args
)
{
log
(
level
::
info
,
fmt
,
std
::
forward
<
Args
>
(
args
)...);
}
template
<
typename
FormatString
,
typename
...
Args
>
void
warn
(
const
FormatString
&
fmt
,
Args
&&
...
args
)
{
log
(
level
::
warn
,
fmt
,
std
::
forward
<
Args
>
(
args
)...);
}
template
<
typename
FormatString
,
typename
...
Args
>
void
error
(
const
FormatString
&
fmt
,
Args
&&
...
args
)
{
log
(
level
::
err
,
fmt
,
std
::
forward
<
Args
>
(
args
)...);
}
template
<
typename
FormatString
,
typename
...
Args
>
void
critical
(
const
FormatString
&
fmt
,
Args
&&
...
args
)
{
log
(
level
::
critical
,
fmt
,
std
::
forward
<
Args
>
(
args
)...);
}
template
<
typename
T
>
void
log
(
level
::
level_enum
lvl
,
const
T
&
msg
)
{
...
...
@@ -176,42 +139,6 @@ public:
log
(
loc
,
lvl
,
"{}"
,
msg
);
}
template
<
typename
T
>
void
trace
(
const
T
&
msg
)
{
log
(
level
::
trace
,
msg
);
}
template
<
typename
T
>
void
debug
(
const
T
&
msg
)
{
log
(
level
::
debug
,
msg
);
}
template
<
typename
T
>
void
info
(
const
T
&
msg
)
{
log
(
level
::
info
,
msg
);
}
template
<
typename
T
>
void
warn
(
const
T
&
msg
)
{
log
(
level
::
warn
,
msg
);
}
template
<
typename
T
>
void
error
(
const
T
&
msg
)
{
log
(
level
::
err
,
msg
);
}
template
<
typename
T
>
void
critical
(
const
T
&
msg
)
{
log
(
level
::
critical
,
msg
);
}
#ifdef SPDLOG_WCHAR_TO_UTF8_SUPPORT
# ifndef _WIN32
# error SPDLOG_WCHAR_TO_UTF8_SUPPORT only supported on windows
...
...
@@ -262,6 +189,78 @@ public:
# endif // _WIN32
#endif // SPDLOG_WCHAR_TO_UTF8_SUPPORT
template
<
typename
FormatString
,
typename
...
Args
>
void
trace
(
const
FormatString
&
fmt
,
Args
&&
...
args
)
{
log
(
level
::
trace
,
fmt
,
std
::
forward
<
Args
>
(
args
)...);
}
template
<
typename
FormatString
,
typename
...
Args
>
void
debug
(
const
FormatString
&
fmt
,
Args
&&
...
args
)
{
log
(
level
::
debug
,
fmt
,
std
::
forward
<
Args
>
(
args
)...);
}
template
<
typename
FormatString
,
typename
...
Args
>
void
info
(
const
FormatString
&
fmt
,
Args
&&
...
args
)
{
log
(
level
::
info
,
fmt
,
std
::
forward
<
Args
>
(
args
)...);
}
template
<
typename
FormatString
,
typename
...
Args
>
void
warn
(
const
FormatString
&
fmt
,
Args
&&
...
args
)
{
log
(
level
::
warn
,
fmt
,
std
::
forward
<
Args
>
(
args
)...);
}
template
<
typename
FormatString
,
typename
...
Args
>
void
error
(
const
FormatString
&
fmt
,
Args
&&
...
args
)
{
log
(
level
::
err
,
fmt
,
std
::
forward
<
Args
>
(
args
)...);
}
template
<
typename
FormatString
,
typename
...
Args
>
void
critical
(
const
FormatString
&
fmt
,
Args
&&
...
args
)
{
log
(
level
::
critical
,
fmt
,
std
::
forward
<
Args
>
(
args
)...);
}
template
<
typename
T
>
void
trace
(
const
T
&
msg
)
{
log
(
level
::
trace
,
msg
);
}
template
<
typename
T
>
void
debug
(
const
T
&
msg
)
{
log
(
level
::
debug
,
msg
);
}
template
<
typename
T
>
void
info
(
const
T
&
msg
)
{
log
(
level
::
info
,
msg
);
}
template
<
typename
T
>
void
warn
(
const
T
&
msg
)
{
log
(
level
::
warn
,
msg
);
}
template
<
typename
T
>
void
error
(
const
T
&
msg
)
{
log
(
level
::
err
,
msg
);
}
template
<
typename
T
>
void
critical
(
const
T
&
msg
)
{
log
(
level
::
critical
,
msg
);
}
// return true logging is enabled for the given level.
bool
should_log
(
level
::
level_enum
msg_level
)
const
{
...
...
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