Refactor Logging Impl

Loop on stop_token and remove final_entry in Entry.
Move Backend thread out of Impl Constructor to its own function.
Add Start function for backend thread.
Use stop token in PopWait and check if entry filename is nullptr before logging.
This commit is contained in:
Levi Behunin 2021-11-01 18:36:27 -06:00
parent f808a30f94
commit d6b5f64484
4 changed files with 41 additions and 28 deletions

View file

@ -14,6 +14,8 @@ class Filter;
/// Initializes the logging system. This should be the first thing called in main.
void Initialize();
void Start();
void DisableLoggingInTests();
/**