2014-03-22 20:11:17 +08:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
#include <chrono>
|
2014-03-28 17:52:36 +08:00
|
|
|
|
2014-03-22 20:11:17 +08:00
|
|
|
#include <iomanip>
|
|
|
|
#include <thread>
|
|
|
|
#include <cstring>
|
2014-05-08 07:23:07 +08:00
|
|
|
#include <sstream>
|
2014-05-09 20:27:06 +08:00
|
|
|
|
2014-10-10 08:36:50 +08:00
|
|
|
#include "common.h"
|
2014-03-22 20:11:17 +08:00
|
|
|
#include "details/os.h"
|
2014-05-09 20:27:06 +08:00
|
|
|
#include "details/log_msg.h"
|
2014-05-09 21:33:55 +08:00
|
|
|
#include "details/fast_oss.h"
|
2014-05-08 07:23:07 +08:00
|
|
|
|
2014-03-22 20:11:17 +08:00
|
|
|
|
|
|
|
namespace c11log
|
|
|
|
{
|
|
|
|
|
|
|
|
class formatter
|
|
|
|
{
|
2014-03-28 21:05:09 +08:00
|
|
|
public:
|
2014-05-09 23:00:10 +08:00
|
|
|
virtual void format(details::log_msg& msg) = 0;
|
2014-03-22 20:11:17 +08:00
|
|
|
};
|
|
|
|
}
|