aboutsummaryrefslogtreecommitdiff
path: root/src/common/logging/backend.h
diff options
context:
space:
mode:
authorLevi Behunin <l3ehunin@gmail.com>2021-11-01 18:36:27 -0600
committerLevi Behunin <l3ehunin@gmail.com>2021-11-01 18:36:27 -0600
commitd6b5f64484053772c486a0cd4d3be98f02a01391 (patch)
tree3162d5485a1f81ec8cc313e577def14a89e7c040 /src/common/logging/backend.h
parentf808a30f94276053eb2e9aa1b50f3016088961c3 (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.h2
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();
/**