diff options
author | Alexey Salmin <alexey.salmin@gmail.com> | 2022-02-10 16:49:37 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:49:37 +0300 |
commit | 3c5b1607b38f637d2f3313791ed25c2e080d2647 (patch) | |
tree | 99be7b96e7c66612fbca94331100ef3b5fedcb88 /library/cpp/logger/global/rty_formater.h | |
parent | de89752358147d7b25ef59a85b431bb564068a49 (diff) | |
download | ydb-3c5b1607b38f637d2f3313791ed25c2e080d2647.tar.gz |
Restoring authorship annotation for Alexey Salmin <alexey.salmin@gmail.com>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/logger/global/rty_formater.h')
-rw-r--r-- | library/cpp/logger/global/rty_formater.h | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/library/cpp/logger/global/rty_formater.h b/library/cpp/logger/global/rty_formater.h index 6532e1d769..637e5ae1a1 100644 --- a/library/cpp/logger/global/rty_formater.h +++ b/library/cpp/logger/global/rty_formater.h @@ -16,30 +16,30 @@ public: ILoggerFormatter* CreateRtyLoggerFormatter(); namespace NLoggingImpl { - class TLocalTimeS { - public: - TLocalTimeS(TInstant instant = TInstant::Now()) - : Instant(instant) - { - } - - TInstant GetInstant() const { - return Instant; - } - - operator TString() const; - TString operator+(TStringBuf right) const; - - private: - TInstant Instant; - }; - + class TLocalTimeS { + public: + TLocalTimeS(TInstant instant = TInstant::Now()) + : Instant(instant) + { + } + + TInstant GetInstant() const { + return Instant; + } + + operator TString() const; + TString operator+(TStringBuf right) const; + + private: + TInstant Instant; + }; + IOutputStream& operator<<(IOutputStream& out, TLocalTimeS localTimeS); - - inline TLocalTimeS GetLocalTimeS() { - return TLocalTimeS(); - } - + + inline TLocalTimeS GetLocalTimeS() { + return TLocalTimeS(); + } + TString GetSystemResources(); TString PrintSystemResources(const NMemInfo::TMemInfo& info); |