diff options
author | stanly <stanly@yandex-team.ru> | 2022-02-10 16:46:49 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:49 +0300 |
commit | cde218e65dfef5ce03a48d641fd8f7913cf17b2d (patch) | |
tree | d3349caea4095825a55b5ba24fe758067b29ce6f /library/cpp/logger/log.h | |
parent | 9f813499b4ef585cb3c2bb93de93ef003daf4fc4 (diff) | |
download | ydb-cde218e65dfef5ce03a48d641fd8f7913cf17b2d.tar.gz |
Restoring authorship annotation for <stanly@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/logger/log.h')
-rw-r--r-- | library/cpp/logger/log.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/library/cpp/logger/log.h b/library/cpp/logger/log.h index 8be984ccc8..59409b4778 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); |