aboutsummaryrefslogtreecommitdiff
path: root/backend/print.h
blob: 8fa05015bb4465cfd09848cbfb73ec5207d7c96d (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
#pragma once

#include <stdio.h>

#include "String.h"

void lprtf(const char * fmt, ...);

class SessionLog {
public:
	static SessionLog & get();

private:
	SessionLog();
	virtual ~SessionLog();

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;
};