diff options
author | Vlad Yaroslavlev <vladon@vladon.com> | 2022-02-10 16:46:23 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:23 +0300 |
commit | 706b83ed7de5a473436620367af31fc0ceecde07 (patch) | |
tree | 103305d30dec77e8f6367753367f59b3cd68f9f1 /library/cpp/logger/file.cpp | |
parent | 918e8a1574070d0ec733f0b76cfad8f8892ad2e5 (diff) | |
download | ydb-706b83ed7de5a473436620367af31fc0ceecde07.tar.gz |
Restoring authorship annotation for Vlad Yaroslavlev <vladon@vladon.com>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/logger/file.cpp')
-rw-r--r-- | library/cpp/logger/file.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/library/cpp/logger/file.cpp b/library/cpp/logger/file.cpp index 15a4946edac..650be581ecc 100644 --- a/library/cpp/logger/file.cpp +++ b/library/cpp/logger/file.cpp @@ -3,14 +3,14 @@ #include <util/system/file.h> #include <util/system/rwlock.h> -#include <util/generic/string.h> +#include <util/generic/string.h> /* * file log */ class TFileLogBackend::TImpl { public: - inline TImpl(const TString& path) + inline TImpl(const TString& path) : File_(OpenFile(path)) { } @@ -30,7 +30,7 @@ public: } private: - static inline TFile OpenFile(const TString& path) { + static inline TFile OpenFile(const TString& path) { return TFile(path, OpenAlways | WrOnly | ForAppend | Seq | NoReuse); } @@ -39,12 +39,12 @@ private: TFile File_; }; -TFileLogBackend::TFileLogBackend(const TString& path) +TFileLogBackend::TFileLogBackend(const TString& path) : Impl_(new TImpl(path)) { } -TFileLogBackend::~TFileLogBackend() { +TFileLogBackend::~TFileLogBackend() { } void TFileLogBackend::WriteData(const TLogRecord& rec) { |