diff options
author | bulatman <bulatman@yandex-team.ru> | 2022-02-10 16:45:50 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:50 +0300 |
commit | 6560e4993b14d193f8c879e33a3de5e5eba6e21d (patch) | |
tree | cfd2e2baa05c3196f2caacbb63c32e1df40bc3de /library/cpp/logger/global/rty_formater.h | |
parent | 7489e4682331202b9c7d863c0898eb83d7b12c2b (diff) | |
download | ydb-6560e4993b14d193f8c879e33a3de5e5eba6e21d.tar.gz |
Restoring authorship annotation for <bulatman@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/logger/global/rty_formater.h')
-rw-r--r-- | library/cpp/logger/global/rty_formater.h | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/library/cpp/logger/global/rty_formater.h b/library/cpp/logger/global/rty_formater.h index 6532e1d769..b89b50776a 100644 --- a/library/cpp/logger/global/rty_formater.h +++ b/library/cpp/logger/global/rty_formater.h @@ -6,15 +6,15 @@ namespace NMemInfo { struct TMemInfo; } -class ILoggerFormatter { -public: - virtual ~ILoggerFormatter() = default; - - virtual void Format(const TLogRecordContext&, TLogElement&) const = 0; -}; - -ILoggerFormatter* CreateRtyLoggerFormatter(); - +class ILoggerFormatter { +public: + virtual ~ILoggerFormatter() = default; + + virtual void Format(const TLogRecordContext&, TLogElement&) const = 0; +}; + +ILoggerFormatter* CreateRtyLoggerFormatter(); + namespace NLoggingImpl { class TLocalTimeS { public: @@ -42,17 +42,17 @@ namespace NLoggingImpl { TString GetSystemResources(); TString PrintSystemResources(const NMemInfo::TMemInfo& info); - - struct TLoggerFormatterTraits { - static ILoggerFormatter* CreateDefault() { - return CreateRtyLoggerFormatter(); - } - }; + + struct TLoggerFormatterTraits { + static ILoggerFormatter* CreateDefault() { + return CreateRtyLoggerFormatter(); + } + }; } -class TLoggerFormatterOperator : public NLoggingImpl::TOperatorBase<ILoggerFormatter, NLoggingImpl::TLoggerFormatterTraits> { -}; - +class TLoggerFormatterOperator : public NLoggingImpl::TOperatorBase<ILoggerFormatter, NLoggingImpl::TLoggerFormatterTraits> { +}; + struct TRTYMessageFormater { static bool CheckLoggingContext(TLog& logger, const TLogRecordContext& context); static TSimpleSharedPtr<TLogElement> StartRecord(TLog& logger, const TLogRecordContext& context, TSimpleSharedPtr<TLogElement> earlier); |