Spectre/System/Log: Support Writer interface.
This commit is contained in:
parent
8db01a0957
commit
faed79c653
2 changed files with 20 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue