renamed printf

This commit is contained in:
gabime 2019-03-24 01:21:07 +02:00
parent 509a503761
commit 722943000e
3 changed files with 15 additions and 15 deletions

View File

@ -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_printf("Hello %s ", "GABI");
l.info_printf("Hello %d", 12346);
l.warn_printf("Hello %f", 12346.5656);
l.warn("Hello {}", 12346.5656);
}

View File

@ -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_printf(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_printf(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_printf(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_printf(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_printf(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_printf(const char *format, ...)
{
va_list args;
va_start(args, format);

View File

@ -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