aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/logger
diff options
context:
space:
mode:
authorsvshevtsov <svshevtsov@yandex-team.ru>2022-02-10 16:49:37 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:49:37 +0300
commit657337012a264721d58c470b4e9e796611f3c492 (patch)
tree82753fd92cf7cc2dea4e522a945ed570131f920b /library/cpp/logger
parent44f31b316af517a4fbc6a82ebed8a1c51807deac (diff)
downloadydb-657337012a264721d58c470b4e9e796611f3c492.tar.gz
Restoring authorship annotation for <svshevtsov@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/logger')
-rw-r--r--library/cpp/logger/element.cpp12
-rw-r--r--library/cpp/logger/global/global.cpp8
-rw-r--r--library/cpp/logger/global/global.h2
-rw-r--r--library/cpp/logger/global/rty_formater.cpp6
-rw-r--r--library/cpp/logger/global/rty_formater.h8
5 files changed, 18 insertions, 18 deletions
diff --git a/library/cpp/logger/element.cpp b/library/cpp/logger/element.cpp
index b510fe16e1..31bbd1dbe9 100644
--- a/library/cpp/logger/element.cpp
+++ b/library/cpp/logger/element.cpp
@@ -11,12 +11,12 @@ TLogElement::TLogElement(const TLog* parent)
}
TLogElement::TLogElement(const TLog* parent, ELogPriority priority)
- : Parent_(parent)
- , Priority_(priority)
-{
- Reset();
-}
-
+ : Parent_(parent)
+ , Priority_(priority)
+{
+ Reset();
+}
+
TLogElement::~TLogElement() {
try {
Finish();
diff --git a/library/cpp/logger/global/global.cpp b/library/cpp/logger/global/global.cpp
index 9fbd10f666..7244cc86c7 100644
--- a/library/cpp/logger/global/global.cpp
+++ b/library/cpp/logger/global/global.cpp
@@ -7,7 +7,7 @@ static void DoInitGlobalLog(THolder<TGlobalLog> logger, THolder<ILoggerFormatter
}
TLoggerFormatterOperator::Set(formatter.Release());
}
-
+
void DoInitGlobalLog(const TString& logType, const int logLevel, const bool rotation, const bool startAsDaemon, THolder<ILoggerFormatter> formatter, bool threaded) {
DoInitGlobalLog(
MakeHolder<TGlobalLog>(
@@ -22,9 +22,9 @@ void DoInitGlobalLog(THolder<TLogBackend> backend, THolder<ILoggerFormatter> for
DoInitGlobalLog(THolder(new TGlobalLog(std::move(backend))), std::move(formatter));
}
-bool GlobalLogInitialized() {
- return TLoggerOperator<TGlobalLog>::Usage();
-}
+bool GlobalLogInitialized() {
+ return TLoggerOperator<TGlobalLog>::Usage();
+}
template <>
TGlobalLog* CreateDefaultLogger<TGlobalLog>() {
diff --git a/library/cpp/logger/global/global.h b/library/cpp/logger/global/global.h
index cbe71b16ea..c9ec43cf0b 100644
--- a/library/cpp/logger/global/global.h
+++ b/library/cpp/logger/global/global.h
@@ -5,7 +5,7 @@
// ATTENTION! MUST CALL DoInitGlobalLog BEFORE USAGE
-bool GlobalLogInitialized();
+bool GlobalLogInitialized();
void DoInitGlobalLog(const TString& logType, const int logLevel, const bool rotation, const bool startAsDaemon, THolder<ILoggerFormatter> formatter = {}, bool threaded = false);
void DoInitGlobalLog(THolder<TLogBackend> backend, THolder<ILoggerFormatter> formatter = {});
diff --git a/library/cpp/logger/global/rty_formater.cpp b/library/cpp/logger/global/rty_formater.cpp
index 305f8470c5..9eb40eaea7 100644
--- a/library/cpp/logger/global/rty_formater.cpp
+++ b/library/cpp/logger/global/rty_formater.cpp
@@ -54,9 +54,9 @@ namespace NLoggingImpl {
TString GetSystemResources() {
NMemInfo::TMemInfo mi = NMemInfo::GetMemInfo();
- return PrintSystemResources(mi);
- }
-
+ return PrintSystemResources(mi);
+ }
+
TString PrintSystemResources(const NMemInfo::TMemInfo& mi) {
return Sprintf(" rss=%0.3fMb, vms=%0.3fMb", mi.RSS * 1.0 / (1024 * 1024), mi.VMS * 1.0 / (1024 * 1024));
}
diff --git a/library/cpp/logger/global/rty_formater.h b/library/cpp/logger/global/rty_formater.h
index 6532e1d769..8097200ea5 100644
--- a/library/cpp/logger/global/rty_formater.h
+++ b/library/cpp/logger/global/rty_formater.h
@@ -2,10 +2,10 @@
#include "common.h"
-namespace NMemInfo {
- struct TMemInfo;
-}
-
+namespace NMemInfo {
+ struct TMemInfo;
+}
+
class ILoggerFormatter {
public:
virtual ~ILoggerFormatter() = default;