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
775a4112
Commit
775a4112
authored
Mar 23, 2019
by
gabime
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
renamed printf
parent
59b4dd4c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
15 deletions
+16
-15
example.cpp
lite-example/example.cpp
+4
-3
spdlite.cpp
lite/spdlite.cpp
+6
-6
spdlite.h
lite/spdlite.h
+6
-6
No files found.
lite-example/example.cpp
View file @
775a4112
...
...
@@ -5,8 +5,8 @@ int main()
auto
l
=
spdlog
::
create_lite
((
void
*
)
"async"
);
l
.
set_level
(
spdlog
::
lite
::
level
::
trace
);
l
.
trace_f
(
"Hello %s "
,
"GABI"
);
l
.
info_f
(
"Hello %d"
,
12346
);
l
.
warn_f
(
"Hello %f"
,
12346.5656
);
l
.
trace_
print
f
(
"Hello %s "
,
"GABI"
);
l
.
info_
print
f
(
"Hello %d"
,
12346
);
l
.
warn_
print
f
(
"Hello %f"
,
12346.5656
);
l
.
warn
(
"Hello {}"
,
12346.5656
);
}
\ No newline at end of file
lite/spdlite.cpp
View file @
775a4112
...
...
@@ -39,7 +39,7 @@ void spdlog::lite::logger::log_printf(spdlog::lite::level lvl, const char *forma
log
(
lvl
,
string_view_t
{
buffer
,
static_cast
<
size_t
>
(
size
)});
}
void
spdlog
::
lite
::
logger
::
trace_f
(
const
char
*
format
,
...)
void
spdlog
::
lite
::
logger
::
trace_
print
f
(
const
char
*
format
,
...)
{
va_list
args
;
va_start
(
args
,
format
);
...
...
@@ -47,7 +47,7 @@ void spdlog::lite::logger::trace_f(const char *format, ...)
va_end
(
args
);
}
void
spdlog
::
lite
::
logger
::
debug_f
(
const
char
*
format
,
...)
void
spdlog
::
lite
::
logger
::
debug_
print
f
(
const
char
*
format
,
...)
{
va_list
args
;
va_start
(
args
,
format
);
...
...
@@ -55,7 +55,7 @@ void spdlog::lite::logger::debug_f(const char *format, ...)
va_end
(
args
);
}
void
spdlog
::
lite
::
logger
::
info_f
(
const
char
*
format
,
...)
void
spdlog
::
lite
::
logger
::
info_
print
f
(
const
char
*
format
,
...)
{
va_list
args
;
va_start
(
args
,
format
);
...
...
@@ -63,7 +63,7 @@ void spdlog::lite::logger::info_f(const char *format, ...)
va_end
(
args
);
}
void
spdlog
::
lite
::
logger
::
warn_f
(
const
char
*
format
,
...)
void
spdlog
::
lite
::
logger
::
warn_
print
f
(
const
char
*
format
,
...)
{
va_list
args
;
va_start
(
args
,
format
);
...
...
@@ -71,7 +71,7 @@ void spdlog::lite::logger::warn_f(const char *format, ...)
va_end
(
args
);
}
void
spdlog
::
lite
::
logger
::
error_f
(
const
char
*
format
,
...)
void
spdlog
::
lite
::
logger
::
error_
print
f
(
const
char
*
format
,
...)
{
va_list
args
;
va_start
(
args
,
format
);
...
...
@@ -79,7 +79,7 @@ void spdlog::lite::logger::error_f(const char *format, ...)
va_end
(
args
);
}
void
spdlog
::
lite
::
logger
::
critical_f
(
const
char
*
format
,
...)
void
spdlog
::
lite
::
logger
::
critical_
print
f
(
const
char
*
format
,
...)
{
va_list
args
;
va_start
(
args
,
format
);
...
...
lite/spdlite.h
View file @
775a4112
...
...
@@ -75,7 +75,7 @@ public:
log
(
lite
::
level
::
trace
,
fmt
,
args
...);
}
void
trace_
f
(
const
char
*
printf_
format
,
...);
void
trace_
printf
(
const
char
*
format
,
...);
//
// debug
...
...
@@ -91,7 +91,7 @@ public:
log
(
lite
::
level
::
debug
,
fmt
,
args
...);
}
void
debug_
f
(
const
char
*
printf_
format
,
...);
void
debug_
printf
(
const
char
*
format
,
...);
//
// info
...
...
@@ -107,7 +107,7 @@ public:
log
(
lite
::
level
::
info
,
fmt
,
args
...);
}
void
info_
f
(
const
char
*
printf_
format
,
...);
void
info_
printf
(
const
char
*
format
,
...);
//
// warn
...
...
@@ -123,7 +123,7 @@ public:
log
(
lite
::
level
::
warn
,
fmt
,
args
...);
}
void
warn_
f
(
const
char
*
printf_
format
,
...);
void
warn_
printf
(
const
char
*
format
,
...);
//
// error
...
...
@@ -139,7 +139,7 @@ public:
log
(
lite
::
level
::
err
,
fmt
,
args
...);
}
void
error_
f
(
const
char
*
printf_
format
,
...);
void
error_
printf
(
const
char
*
format
,
...);
//
// critical
...
...
@@ -155,7 +155,7 @@ public:
log
(
lite
::
level
::
critical
,
fmt
,
args
...);
}
void
critical_
f
(
const
char
*
printf_
format
,
...);
void
critical_
printf
(
const
char
*
format
,
...);
//
// setters/getters
...
...
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