aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/logger/log.h
diff options
context:
space:
mode:
authorstanly <stanly@yandex-team.ru>2022-02-10 16:46:49 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:49 +0300
commit6170310e8721e225f64ddabf7a7358253d7a1249 (patch)
tree49e222ea1c5804306084bb3ae065bb702625360f /library/cpp/logger/log.h
parentcde218e65dfef5ce03a48d641fd8f7913cf17b2d (diff)
downloadydb-6170310e8721e225f64ddabf7a7358253d7a1249.tar.gz
Restoring authorship annotation for <stanly@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/logger/log.h')
-rw-r--r--library/cpp/logger/log.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/library/cpp/logger/log.h b/library/cpp/logger/log.h
index 59409b4778..8be984ccc8 100644
--- a/library/cpp/logger/log.h
+++ b/library/cpp/logger/log.h
@@ -8,7 +8,7 @@
#include <util/generic/fwd.h>
#include <util/generic/ptr.h>
-
+
#include <functional>
#include <cstdarg>
@@ -37,7 +37,7 @@ public:
// Construct file logger.
TLog(const TString& fname, ELogPriority priority = LOG_MAX_PRIORITY);
// Construct any type of logger
- TLog(THolder<TLogBackend> backend);
+ TLog(THolder<TLogBackend> backend);
TLog(const TLog&);
TLog(TLog&&);
@@ -47,10 +47,10 @@ public:
// Change underlying backend.
// NOTE: not thread safe.
- void ResetBackend(THolder<TLogBackend> backend) noexcept;
+ void ResetBackend(THolder<TLogBackend> backend) noexcept;
// Reset underlying backend, `IsNullLog()` will return `true` after this call.
// NOTE: not thread safe.
- THolder<TLogBackend> ReleaseBackend() noexcept;
+ THolder<TLogBackend> ReleaseBackend() noexcept;
// Check if underlying backend is defined and is not null.
// NOTE: not thread safe with respect to `ResetBackend` and `ReleaseBackend`.
bool IsNullLog() const noexcept;
@@ -110,6 +110,6 @@ private:
TLogFormatter Formatter_;
};
-THolder<TLogBackend> CreateLogBackend(const TString& fname, ELogPriority priority = LOG_MAX_PRIORITY, bool threaded = false);
-THolder<TLogBackend> CreateFilteredOwningThreadedLogBackend(const TString& fname, ELogPriority priority = LOG_MAX_PRIORITY, size_t queueLen = 0);
-THolder<TOwningThreadedLogBackend> CreateOwningThreadedLogBackend(const TString& fname, size_t queueLen = 0);
+THolder<TLogBackend> CreateLogBackend(const TString& fname, ELogPriority priority = LOG_MAX_PRIORITY, bool threaded = false);
+THolder<TLogBackend> CreateFilteredOwningThreadedLogBackend(const TString& fname, ELogPriority priority = LOG_MAX_PRIORITY, size_t queueLen = 0);
+THolder<TOwningThreadedLogBackend> CreateOwningThreadedLogBackend(const TString& fname, size_t queueLen = 0);