blob: c0ece9412bae5b03029f8dcf47bbe6fa7797e14e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#pragma once
#include <library/cpp/logger/backend.h>
#include <util/generic/ptr.h>
namespace NYql::NLog {
using TFormatter = std::function<TString(const TLogRecord&)>;
TString LegacyFormat(const TLogRecord& rec);
TString JsonFormat(const TLogRecord& rec);
TAutoPtr<TLogBackend> MakeFormattingLogBackend(TFormatter formatter, bool isStrict, TAutoPtr<TLogBackend> child);
} // namespace NYql::NLog
|