diff options
author | Levi Behunin <l3ehunin@gmail.com> | 2021-11-01 18:36:27 -0600 |
---|---|---|
committer | Levi Behunin <l3ehunin@gmail.com> | 2021-11-01 18:36:27 -0600 |
commit | d6b5f64484053772c486a0cd4d3be98f02a01391 (patch) | |
tree | 3162d5485a1f81ec8cc313e577def14a89e7c040 /src/common/logging/backend.h | |
parent | f808a30f94276053eb2e9aa1b50f3016088961c3 (diff) |
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.
Diffstat (limited to 'src/common/logging/backend.h')
-rw-r--r-- | src/common/logging/backend.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common/logging/backend.h b/src/common/logging/backend.h index cb7839ee93..bf785f402e 100644 --- a/src/common/logging/backend.h +++ b/src/common/logging/backend.h @@ -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(); /** |