#pragma once #include #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; };