MCPcopy Create free account
hub / github.com/Xtra-Computing/thundersvm / ScopedRemoveFlag

Class ScopedRemoveFlag

include/thundersvm/util/log.h:3897–3907  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3895 };
3896 /// @brief Removes flag and add it when scope goes out
3897 class ScopedRemoveFlag {
3898 public:
3899 ScopedRemoveFlag(LoggingFlag flag) : m_flag(flag) {
3900 Loggers::removeFlag(m_flag);
3901 }
3902 ~ScopedRemoveFlag(void) {
3903 Loggers::addFlag(m_flag);
3904 }
3905 private:
3906 LoggingFlag m_flag;
3907 };
3908 /// @brief Sets hierarchy for logging. Needs to enable logging flag (HierarchicalLogging)
3909 static void setLoggingLevel(Level level) {
3910 ELPP->setLoggingLevel(level);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected