1 #ifndef LOGGER_HPP_INCLUDED
2 #define LOGGER_HPP_INCLUDED
7 class Logger :
public std::ostream,
public std::streambuf
10 Logger(
const std::string& Prefix,
bool Enabled =
true);
11 Logger(std::string (*Func)(),
bool Enabled =
true);
18 virtual std::streambuf::int_type
overflow(std::streambuf::int_type Char = std::streambuf::traits_type::eof());
21 std::string Prefix =
"";
22 std::string (*FuncPtr)() =
nullptr;
24 std::uint32_t TabCount;
25 bool MinusAtEndOfNewLine =
false;
26 bool AddAtEndOfNewLine =
false;
Logger(const std::string &Prefix, bool Enabled=true)
Logger(std::string(*Func)(), bool Enabled=true)
void SetEnabled(bool Toggle)
virtual std::streambuf::int_type overflow(std::streambuf::int_type Char=std::streambuf::traits_type::eof())