1
0
Fork 0

Spectre/System/Log: Support Writer interface.

This commit is contained in:
Henrik Hautakoski 2023-02-18 13:54:57 +01:00
parent 8db01a0957
commit faed79c653
2 changed files with 20 additions and 4 deletions

View file

@ -7,6 +7,8 @@
namespace sp {
namespace log { class Writer; }
class Log
{
public :
@ -18,6 +20,8 @@ public :
T_DEBUG = 1 << 3
};
static void setWriter(log::Writer* writer);
static void info(const char *format, ...);
static void warn(const char *format, ...);
@ -29,6 +33,8 @@ public :
private :
static void writeln(Type type, const char *fmt, va_list args);
static log::Writer* _writer;
};
} // namespace sp