mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-24 21:10:33 +05:00
Fix core guidelines issues
This commit is contained in:
parent
4ef76fa710
commit
5f9ec6cec6
@ -19,7 +19,8 @@ namespace ngcore
|
||||
#ifdef NETGEN_USE_SPDLOG
|
||||
logger->log(spdlog::level::level_enum(level), s);
|
||||
#else // NETGEN_USE_SPDLOG
|
||||
std::clog << s << '\n';
|
||||
if(level>level::debug)
|
||||
std::clog << s << '\n';
|
||||
#endif // NETGEN_USE_SPDLOG
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user