Fix core guidelines issues

This commit is contained in:
Matthias Hochsteger 2019-01-16 15:10:53 +01:00
parent 4ef76fa710
commit 5f9ec6cec6
2 changed files with 4 additions and 3 deletions

View File

@ -19,6 +19,7 @@ namespace ngcore
#ifdef NETGEN_USE_SPDLOG
logger->log(spdlog::level::level_enum(level), s);
#else // NETGEN_USE_SPDLOG
if(level>level::debug)
std::clog << s << '\n';
#endif // NETGEN_USE_SPDLOG
}

View File

@ -43,14 +43,14 @@ namespace ngcore
critical = 5,
off = 6
};
}
} // namespace level
class Logger
{
public:
std::shared_ptr<spdlog::logger> logger;
Logger(std::shared_ptr<spdlog::logger> l) : logger(l) {}
Logger(std::shared_ptr<spdlog::logger> l) : logger(std::move(l)) {}
void NGCORE_API log( level::level_enum level, std::string && s);