mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-27 02:01:42 +00:00
Allow resetting the logger back to default (#55)
This commit is contained in:
committed by
Peter Johnson
parent
8f97637b71
commit
c02d34dbf3
@@ -592,6 +592,12 @@ void SetLogger(LogFunc func, unsigned int min_level) {
|
||||
logger.set_min_level(min_level);
|
||||
}
|
||||
|
||||
void SetDefaultLogger(unsigned int min_level) {
|
||||
Logger& logger = Logger::GetInstance();
|
||||
logger.SetDefaultLogger();
|
||||
logger.set_min_level(min_level);
|
||||
}
|
||||
|
||||
//
|
||||
// Utility Functions
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user