Commit 72294300 authored by gabime's avatar gabime

renamed printf

parent 509a5037
...@@ -5,8 +5,8 @@ int main() ...@@ -5,8 +5,8 @@ int main()
auto l = spdlog::create_lite((void*)"async"); auto l = spdlog::create_lite((void*)"async");
l.set_level(spdlog::lite::level::trace); l.set_level(spdlog::lite::level::trace);
l.trace_f("Hello %s ", "GABI"); l.trace_printf("Hello %s ", "GABI");
l.info_f("Hello %d", 12346); l.info_printf("Hello %d", 12346);
l.warn_f("Hello %f", 12346.5656); l.warn_printf("Hello %f", 12346.5656);
l.warn("Hello {}", 12346.5656); l.warn("Hello {}", 12346.5656);
} }
\ No newline at end of file
...@@ -39,7 +39,7 @@ void spdlog::lite::logger::log_printf(spdlog::lite::level lvl, const char *forma ...@@ -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)}); 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_printf(const char *format, ...)
{ {
va_list args; va_list args;
va_start(args, format); va_start(args, format);
...@@ -47,7 +47,7 @@ void spdlog::lite::logger::trace_f(const char *format, ...) ...@@ -47,7 +47,7 @@ void spdlog::lite::logger::trace_f(const char *format, ...)
va_end(args); va_end(args);
} }
void spdlog::lite::logger::debug_f(const char *format, ...) void spdlog::lite::logger::debug_printf(const char *format, ...)
{ {
va_list args; va_list args;
va_start(args, format); va_start(args, format);
...@@ -55,7 +55,7 @@ void spdlog::lite::logger::debug_f(const char *format, ...) ...@@ -55,7 +55,7 @@ void spdlog::lite::logger::debug_f(const char *format, ...)
va_end(args); va_end(args);
} }
void spdlog::lite::logger::info_f(const char *format, ...) void spdlog::lite::logger::info_printf(const char *format, ...)
{ {
va_list args; va_list args;
va_start(args, format); va_start(args, format);
...@@ -63,7 +63,7 @@ void spdlog::lite::logger::info_f(const char *format, ...) ...@@ -63,7 +63,7 @@ void spdlog::lite::logger::info_f(const char *format, ...)
va_end(args); va_end(args);
} }
void spdlog::lite::logger::warn_f(const char *format, ...) void spdlog::lite::logger::warn_printf(const char *format, ...)
{ {
va_list args; va_list args;
va_start(args, format); va_start(args, format);
...@@ -71,7 +71,7 @@ void spdlog::lite::logger::warn_f(const char *format, ...) ...@@ -71,7 +71,7 @@ void spdlog::lite::logger::warn_f(const char *format, ...)
va_end(args); va_end(args);
} }
void spdlog::lite::logger::error_f(const char *format, ...) void spdlog::lite::logger::error_printf(const char *format, ...)
{ {
va_list args; va_list args;
va_start(args, format); va_start(args, format);
...@@ -79,7 +79,7 @@ void spdlog::lite::logger::error_f(const char *format, ...) ...@@ -79,7 +79,7 @@ void spdlog::lite::logger::error_f(const char *format, ...)
va_end(args); va_end(args);
} }
void spdlog::lite::logger::critical_f(const char *format, ...) void spdlog::lite::logger::critical_printf(const char *format, ...)
{ {
va_list args; va_list args;
va_start(args, format); va_start(args, format);
......
...@@ -75,7 +75,7 @@ public: ...@@ -75,7 +75,7 @@ public:
log(lite::level::trace, fmt, args...); log(lite::level::trace, fmt, args...);
} }
void trace_f(const char *printf_format, ...); void trace_printf(const char *format, ...);
// //
// debug // debug
...@@ -91,7 +91,7 @@ public: ...@@ -91,7 +91,7 @@ public:
log(lite::level::debug, fmt, args...); log(lite::level::debug, fmt, args...);
} }
void debug_f(const char *printf_format, ...); void debug_printf(const char *format, ...);
// //
// info // info
...@@ -107,7 +107,7 @@ public: ...@@ -107,7 +107,7 @@ public:
log(lite::level::info, fmt, args...); log(lite::level::info, fmt, args...);
} }
void info_f(const char *printf_format, ...); void info_printf(const char *format, ...);
// //
// warn // warn
...@@ -123,7 +123,7 @@ public: ...@@ -123,7 +123,7 @@ public:
log(lite::level::warn, fmt, args...); log(lite::level::warn, fmt, args...);
} }
void warn_f(const char *printf_format, ...); void warn_printf(const char *format, ...);
// //
// error // error
...@@ -139,7 +139,7 @@ public: ...@@ -139,7 +139,7 @@ public:
log(lite::level::err, fmt, args...); log(lite::level::err, fmt, args...);
} }
void error_f(const char *printf_format, ...); void error_printf(const char *format, ...);
// //
// critical // critical
...@@ -155,7 +155,7 @@ public: ...@@ -155,7 +155,7 @@ public:
log(lite::level::critical, fmt, args...); log(lite::level::critical, fmt, args...);
} }
void critical_f(const char *printf_format, ...); void critical_printf(const char *format, ...);
// //
// setters/getters // setters/getters
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment