aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/logger
diff options
context:
space:
mode:
authorleo <leo@yandex-team.ru>2022-02-10 16:46:40 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:40 +0300
commit99609724f661f7e21d1cb08e8d80e87c3632fdb3 (patch)
tree49e222ea1c5804306084bb3ae065bb702625360f /library/cpp/logger
parent980edcd3304699edf9d4e4d6a656e585028e2a72 (diff)
downloadydb-99609724f661f7e21d1cb08e8d80e87c3632fdb3.tar.gz
Restoring authorship annotation for <leo@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/logger')
-rw-r--r--library/cpp/logger/backend.h4
-rw-r--r--library/cpp/logger/file.h4
-rw-r--r--library/cpp/logger/log.h2
-rw-r--r--library/cpp/logger/log_ut.cpp4
-rw-r--r--library/cpp/logger/null.h2
-rw-r--r--library/cpp/logger/priority.h2
-rw-r--r--library/cpp/logger/record.h4
-rw-r--r--library/cpp/logger/stream.h2
-rw-r--r--library/cpp/logger/system.h2
-rw-r--r--library/cpp/logger/thread.h2
10 files changed, 14 insertions, 14 deletions
diff --git a/library/cpp/logger/backend.h b/library/cpp/logger/backend.h
index 0b64a80be5..d088726d6d 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 9204d5ad60..10b4cd0c20 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 35896d6b1e..8be984ccc8 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 a30ae0f0df..8de46f17f5 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 3ec8c670d9..a02f250b00 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 aafa74be8b..d2a9fa0a07 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 dd9d0d03a1..c28a7785fd 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 e57fcf55fd..feb240afcb 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 5eeca896c6..b8c60b3023 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 1ea222a0e6..65f7a88e87 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>