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.
1 parent c23d727 commit d7785a8Copy full SHA for d7785a8
source/common/logger/ur_logger.hpp
@@ -16,12 +16,12 @@ namespace logger {
16
17
Logger create_logger(std::string logger_name, bool skip_prefix = false);
18
19
-inline Logger &get_logger(std::string name = "common") {
20
- static Logger logger = create_logger(std::move(name));
+inline Logger &get_logger(const char *name = "common") {
+ static Logger logger = create_logger(name);
21
return logger;
22
}
23
24
-inline void init(std::string name) { get_logger(std::move(name)); }
+inline void init(const std::string &name) { get_logger(name.c_str()); }
25
26
template <typename... Args>
27
inline void debug(const char *format, Args &&...args) {
0 commit comments