blob: 48490de6ea3907c4bbebfa8ebfdb9df0175bd40d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
#pragma once
#include <stdio.h>
#include "String.h"
void lprtf(const char * fmt, ...);
class SessionLog {
public:
static SessionLog & get();
private:
SessionLog();
virtual ~SessionLog();
SessionLog(const SessionLog &) = delete;
SessionLog(SessionLog &&) = delete;
SessionLog & operator = (const SessionLog &) = delete;
SessionLog & operator = (SessionLog &&) = delete;
public:
virtual void append(const String & str) const;
virtual void append(const char * str) const;
virtual void append(const char * buf, size_t buf_size) const;
private:
FILE * file = nullptr;
static constexpr const bool enable = false;
};
|