mirror of
https://github.com/KjellKod/g3log.git
synced 2024-12-12 18:30:25 +01:00
handling the case of DEBUG to DBUG
This commit is contained in:
parent
d5ad2709a7
commit
540e9601df
@ -46,7 +46,7 @@ namespace g3 {
|
|||||||
FATAL.value + 1
|
FATAL.value + 1
|
||||||
};
|
};
|
||||||
//std::atomic<bool> g_log_level_status[4] {{true}, {true}, {true}, {true}};
|
//std::atomic<bool> g_log_level_status[4] {{true}, {true}, {true}, {true}};
|
||||||
std::map<int, atomicbool> g_log_level_status = {{DEBUG.value, true}, {INFO.value, true}, {WARNING.value, true}, {FATAL.value, true}};
|
std::map<int, atomicbool> g_log_level_status = {{g3::kDebugVaulue, true}, {INFO.value, true}, {WARNING.value, true}, {FATAL.value, true}};
|
||||||
#endif
|
#endif
|
||||||
} // internal
|
} // internal
|
||||||
|
|
||||||
@ -67,7 +67,7 @@ namespace g3 {
|
|||||||
|
|
||||||
void reset() {
|
void reset() {
|
||||||
internal::g_log_level_status.clear();
|
internal::g_log_level_status.clear();
|
||||||
internal::g_log_level_status = {{DEBUG.value, true}, {INFO.value, true}, {WARNING.value, true}, {FATAL.value, true}};
|
internal::g_log_level_status = {{g3::kDebugVaulue, true}, {INFO.value, true}, {WARNING.value, true}, {FATAL.value, true}};
|
||||||
}
|
}
|
||||||
} // only_change_at_initialization
|
} // only_change_at_initialization
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user