mirror of
https://github.com/gabime/spdlog.git
synced 2025-10-02 03:19:02 +08:00
Replace string pointer with string_view in log_msg
This commit is contained in:
@@ -21,7 +21,7 @@ SPDLOG_INLINE void logger::log(source_loc loc, level::level_enum lvl, const char
|
||||
|
||||
try
|
||||
{
|
||||
details::log_msg log_msg(loc, &name_, lvl, string_view_t(msg));
|
||||
details::log_msg log_msg(loc, string_view_t(name_), lvl, string_view_t(msg));
|
||||
sink_it_(log_msg);
|
||||
}
|
||||
catch (const std::exception &ex)
|
||||
|
Reference in New Issue
Block a user