aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/logger/file.h
blob: fb8d3879c4449354ce887f635fe858b14540ba0d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#pragma once

#include "backend.h" 
 
#include <util/generic/fwd.h>
#include <util/generic/ptr.h>
 
class TFileLogBackend: public TLogBackend { 
public: 
    TFileLogBackend(const TString& path);
    ~TFileLogBackend() override; 
 
    void WriteData(const TLogRecord& rec) override; 
    void ReopenLog() override; 
 
private: 
    class TImpl; 
    TAtomicSharedPtr<TImpl> Impl_;
};