aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/logger/log.h
diff options
context:
space:
mode:
authorconterouz <conterouz@yandex-team.com>2023-11-13 11:26:20 +0300
committerconterouz <conterouz@yandex-team.com>2023-11-13 11:59:03 +0300
commitdab0d384d5e9c65b0d7f467bc3e21728cd179ba3 (patch)
tree4d8d26afd0fe64a781e55200a0c252ee5050dcde /library/cpp/logger/log.h
parent0ab35f35d6fdca04b22724fceb9f98ee976b7891 (diff)
downloadydb-dab0d384d5e9c65b0d7f467bc3e21728cd179ba3.tar.gz
Сделать нормальное логгирование в UaaS
Diffstat (limited to 'library/cpp/logger/log.h')
-rw-r--r--library/cpp/logger/log.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/library/cpp/logger/log.h b/library/cpp/logger/log.h
index 7520cc1530..6c90b0cb29 100644
--- a/library/cpp/logger/log.h
+++ b/library/cpp/logger/log.h
@@ -54,6 +54,9 @@ public:
// Check if underlying backend is defined and is not null.
// NOTE: not thread safe with respect to `ResetBackend` and `ReleaseBackend`.
bool IsNullLog() const noexcept;
+ bool IsNotNullLog() const noexcept {
+ return !IsNullLog();
+ }
// Write message to the log.
//