mirror of
https://github.com/gabime/spdlog.git
synced 2025-09-30 10:29:02 +08:00
Use fmt::string_view when logging a C string to avoid unnecessary copy
This commit is contained in:
@@ -46,9 +46,10 @@ public:
|
||||
template<typename... Args>
|
||||
void log(level::level_enum lvl, const char *fmt, const Args &... args);
|
||||
|
||||
template<typename... Args>
|
||||
void log(level::level_enum lvl, const char *msg);
|
||||
|
||||
void logn(level::level_enum lvl, const char *msg, size_t msg_len);
|
||||
|
||||
template<typename... Args>
|
||||
void trace(const char *fmt, const Args &... args);
|
||||
|
||||
|
Reference in New Issue
Block a user