mirror of
https://github.com/gabime/spdlog.git
synced 2025-09-29 01:29:35 +08:00
Added default logger API
This commit is contained in:
@@ -508,10 +508,13 @@ class full_formatter final : public flag_formatter
|
||||
#endif
|
||||
|
||||
#ifndef SPDLOG_NO_NAME
|
||||
dest.push_back('[');
|
||||
fmt_helper::append_str(*msg.logger_name, dest);
|
||||
dest.push_back(']');
|
||||
dest.push_back(' ');
|
||||
if (!msg.logger_name->empty())
|
||||
{
|
||||
dest.push_back('[');
|
||||
fmt_helper::append_str(*msg.logger_name, dest);
|
||||
dest.push_back(']');
|
||||
dest.push_back(' ');
|
||||
}
|
||||
#endif
|
||||
|
||||
dest.push_back('[');
|
||||
|
Reference in New Issue
Block a user