mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-11 21:50:34 +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
|
#ifdef NETGEN_USE_SPDLOG
|
||||||
logger->log(spdlog::level::level_enum(level), s);
|
logger->log(spdlog::level::level_enum(level), s);
|
||||||
#else // NETGEN_USE_SPDLOG
|
#else // NETGEN_USE_SPDLOG
|
||||||
std::clog << s << '\n';
|
if(level>level::debug)
|
||||||
|
std::clog << s << '\n';
|
||||||
#endif // NETGEN_USE_SPDLOG
|
#endif // NETGEN_USE_SPDLOG
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -43,14 +43,14 @@ namespace ngcore
|
|||||||
critical = 5,
|
critical = 5,
|
||||||
off = 6
|
off = 6
|
||||||
};
|
};
|
||||||
}
|
} // namespace level
|
||||||
|
|
||||||
class Logger
|
class Logger
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
std::shared_ptr<spdlog::logger> logger;
|
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);
|
void NGCORE_API log( level::level_enum level, std::string && s);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user