aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/logger/global/rty_formater.h
diff options
context:
space:
mode:
authorbulatman <bulatman@yandex-team.ru>2022-02-10 16:45:50 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:45:50 +0300
commit2f6ca198245aeffd5e2d82b65927c2465b68b4f5 (patch)
tree9142afc54d335ea52910662635b898e79e192e49 /library/cpp/logger/global/rty_formater.h
parent6560e4993b14d193f8c879e33a3de5e5eba6e21d (diff)
downloadydb-2f6ca198245aeffd5e2d82b65927c2465b68b4f5.tar.gz
Restoring authorship annotation for <bulatman@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/logger/global/rty_formater.h')
-rw-r--r--library/cpp/logger/global/rty_formater.h36
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 b89b50776a..6532e1d769 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);