diff options
author | ndnuriev <ndnuriev@yandex-team.ru> | 2022-02-10 16:49:45 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:49:45 +0300 |
commit | 28045de07753ee182fc8e5ca778469d7a7c5bb20 (patch) | |
tree | 5d5cb817648f650d76cf1076100726fd9b8448e8 /library/cpp/logger/log.h | |
parent | 3659e5861440ac98d0380de7698601ad14655a7a (diff) | |
download | ydb-28045de07753ee182fc8e5ca778469d7a7c5bb20.tar.gz |
Restoring authorship annotation for <ndnuriev@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/logger/log.h')
-rw-r--r-- | library/cpp/logger/log.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/library/cpp/logger/log.h b/library/cpp/logger/log.h index 5fedf3a823..8be984ccc8 100644 --- a/library/cpp/logger/log.h +++ b/library/cpp/logger/log.h @@ -12,7 +12,7 @@ #include <functional> #include <cstdarg> -using TLogFormatter = std::function<TString(ELogPriority priority, TStringBuf)>; +using TLogFormatter = std::function<TString(ELogPriority priority, TStringBuf)>; // Logging facilities interface. // @@ -35,7 +35,7 @@ public: // Construct empty logger all writes will be spilled. TLog(); // Construct file logger. - TLog(const TString& fname, ELogPriority priority = LOG_MAX_PRIORITY); + TLog(const TString& fname, ELogPriority priority = LOG_MAX_PRIORITY); // Construct any type of logger TLog(THolder<TLogBackend> backend); @@ -63,7 +63,7 @@ public: // Write message to the log using `DefaultPriority()`. void Write(const char* data, size_t len) const; // Write message to the log, but pass the message in a c-style. - void Write(ELogPriority priority, const char* data, size_t len) const; + void Write(ELogPriority priority, const char* data, size_t len) const; // Write message to the log in a c-like printf style. void Y_PRINTF_FORMAT(3, 4) AddLog(ELogPriority priority, const char* format, ...) const; @@ -79,12 +79,12 @@ public: // Set log default priority. // NOTE: not thread safe. - void SetDefaultPriority(ELogPriority priority) noexcept; + void SetDefaultPriority(ELogPriority priority) noexcept; // Get default priority - ELogPriority DefaultPriority() const noexcept; + ELogPriority DefaultPriority() const noexcept; // Call `FiltrationLevel()` of the underlying backend. - ELogPriority FiltrationLevel() const noexcept; + ELogPriority FiltrationLevel() const noexcept; // Set current log formatter. void SetFormatter(TLogFormatter formatter) noexcept; |