diff options
author | leo <leo@yandex-team.ru> | 2022-02-10 16:46:40 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:40 +0300 |
commit | 980edcd3304699edf9d4e4d6a656e585028e2a72 (patch) | |
tree | 139f47f3911484ae9af0eb347b1a88bd6c4bb35f /library/cpp/logger | |
parent | b036a557f285146e5e35d4213e29a094ab907bcf (diff) | |
download | ydb-980edcd3304699edf9d4e4d6a656e585028e2a72.tar.gz |
Restoring authorship annotation for <leo@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/logger')
-rw-r--r-- | library/cpp/logger/backend.h | 4 | ||||
-rw-r--r-- | library/cpp/logger/file.h | 4 | ||||
-rw-r--r-- | library/cpp/logger/log.h | 2 | ||||
-rw-r--r-- | library/cpp/logger/log_ut.cpp | 4 | ||||
-rw-r--r-- | library/cpp/logger/null.h | 2 | ||||
-rw-r--r-- | library/cpp/logger/priority.h | 2 | ||||
-rw-r--r-- | library/cpp/logger/record.h | 4 | ||||
-rw-r--r-- | library/cpp/logger/stream.h | 2 | ||||
-rw-r--r-- | library/cpp/logger/system.h | 2 | ||||
-rw-r--r-- | library/cpp/logger/thread.h | 2 |
10 files changed, 14 insertions, 14 deletions
diff --git a/library/cpp/logger/backend.h b/library/cpp/logger/backend.h index d088726d6d..0b64a80be5 100644 --- a/library/cpp/logger/backend.h +++ b/library/cpp/logger/backend.h @@ -1,5 +1,5 @@ #pragma once - + #include "priority.h" #include <util/generic/noncopyable.h> @@ -7,7 +7,7 @@ #include <cstddef> struct TLogRecord; - + // NOTE: be aware that all `TLogBackend`s are registred in singleton. class TLogBackend: public TNonCopyable { public: diff --git a/library/cpp/logger/file.h b/library/cpp/logger/file.h index 10b4cd0c20..9204d5ad60 100644 --- a/library/cpp/logger/file.h +++ b/library/cpp/logger/file.h @@ -1,5 +1,5 @@ #pragma once - + #include "backend.h" #include <util/generic/fwd.h> @@ -16,4 +16,4 @@ public: private: class TImpl; TAtomicSharedPtr<TImpl> Impl_; -}; +}; diff --git a/library/cpp/logger/log.h b/library/cpp/logger/log.h index 8be984ccc8..35896d6b1e 100644 --- a/library/cpp/logger/log.h +++ b/library/cpp/logger/log.h @@ -1,5 +1,5 @@ #pragma once - + #include "backend.h" #include "element.h" #include "priority.h" diff --git a/library/cpp/logger/log_ut.cpp b/library/cpp/logger/log_ut.cpp index 8de46f17f5..a30ae0f0df 100644 --- a/library/cpp/logger/log_ut.cpp +++ b/library/cpp/logger/log_ut.cpp @@ -54,7 +54,7 @@ void TLogTest::TestFile() { log.AddLog("some useful data %d, %u, %lf, %s\n", v1, v2, v3, v4); } - TBlob data = TBlob::FromFileSingleThreaded(LOGFILE); + TBlob data = TBlob::FromFileSingleThreaded(LOGFILE); UNIT_ASSERT_EQUAL(TString((const char*)data.Begin(), data.Size()), "some useful data 12, 34, 3.000000, qwqwqw\n"); } @@ -73,7 +73,7 @@ void TLogTest::TestThreaded() { log.AddLog("some useful data %d, %u, %lf, %s\n", v1, v2, v3, v4); } - TBlob data = TBlob::FromFileSingleThreaded(LOGFILE); + TBlob data = TBlob::FromFileSingleThreaded(LOGFILE); UNIT_ASSERT_EQUAL(TString((const char*)data.Begin(), data.Size()), "some useful data 12, 34, 3.000000, qwqwqw\n"); } diff --git a/library/cpp/logger/null.h b/library/cpp/logger/null.h index a02f250b00..3ec8c670d9 100644 --- a/library/cpp/logger/null.h +++ b/library/cpp/logger/null.h @@ -1,5 +1,5 @@ #pragma once - + #include "backend.h" class TNullLogBackend: public TLogBackend { diff --git a/library/cpp/logger/priority.h b/library/cpp/logger/priority.h index d2a9fa0a07..aafa74be8b 100644 --- a/library/cpp/logger/priority.h +++ b/library/cpp/logger/priority.h @@ -1,5 +1,5 @@ #pragma once - + enum ELogPriority { TLOG_EMERG = 0 /* "EMERG" */, TLOG_ALERT = 1 /* "ALERT" */, diff --git a/library/cpp/logger/record.h b/library/cpp/logger/record.h index c28a7785fd..dd9d0d03a1 100644 --- a/library/cpp/logger/record.h +++ b/library/cpp/logger/record.h @@ -1,5 +1,5 @@ #pragma once - + #include "priority.h" #include <util/system/defaults.h> @@ -8,7 +8,7 @@ struct TLogRecord { const char* Data; size_t Len; ELogPriority Priority; - + inline TLogRecord(ELogPriority priority, const char* data, size_t len) noexcept : Data(data) , Len(len) diff --git a/library/cpp/logger/stream.h b/library/cpp/logger/stream.h index feb240afcb..e57fcf55fd 100644 --- a/library/cpp/logger/stream.h +++ b/library/cpp/logger/stream.h @@ -1,5 +1,5 @@ #pragma once - + #include "backend.h" class IOutputStream; diff --git a/library/cpp/logger/system.h b/library/cpp/logger/system.h index b8c60b3023..5eeca896c6 100644 --- a/library/cpp/logger/system.h +++ b/library/cpp/logger/system.h @@ -1,5 +1,5 @@ #pragma once - + #include "log.h" #include "backend.h" #include "priority.h" diff --git a/library/cpp/logger/thread.h b/library/cpp/logger/thread.h index 65f7a88e87..1ea222a0e6 100644 --- a/library/cpp/logger/thread.h +++ b/library/cpp/logger/thread.h @@ -1,5 +1,5 @@ #pragma once - + #include "backend.h" #include <util/generic/ptr.h> |