26 lines
353 B
C
26 lines
353 B
C
|
#pragma once
|
||
|
|
||
|
#include "common.h"
|
||
|
|
||
|
namespace saw {
|
||
|
class EventLoop;
|
||
|
class LogIo;
|
||
|
class Log {
|
||
|
public:
|
||
|
enum class Type : uint8_t { Info, Warning, Error, Debug };
|
||
|
|
||
|
private:
|
||
|
LogIo ¢ral;
|
||
|
EventLoop &loop;
|
||
|
|
||
|
public:
|
||
|
Log(LogIo ¢ral, EventLoop &loop);
|
||
|
};
|
||
|
class LogIo {
|
||
|
private:
|
||
|
EventLoop &loop;
|
||
|
|
||
|
public:
|
||
|
LogIo(EventLoop &loop);
|
||
|
};
|
||
|
} // namespace saw
|