We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ed8147d + d7785a8 commit 6271b5fCopy full SHA for 6271b5f
source/common/logger/ur_logger.hpp
@@ -17,12 +17,12 @@ namespace logger {
17
Logger create_logger(std::string logger_name, bool skip_prefix = false,
18
bool skip_linebreak = false);
19
20
-inline Logger &get_logger(std::string name = "common") {
21
- static Logger logger = create_logger(std::move(name));
+inline Logger &get_logger(const char *name = "common") {
+ static Logger logger = create_logger(name);
22
return logger;
23
}
24
25
-inline void init(std::string name) { get_logger(std::move(name)); }
+inline void init(const std::string &name) { get_logger(name.c_str()); }
26
27
template <typename... Args>
28
inline void debug(const char *format, Args &&...args) {
0 commit comments