2016-08-02 05:14:09 +08:00
|
|
|
#pragma once
|
|
|
|
|
2016-08-10 16:39:02 +08:00
|
|
|
#include "logging/log.hpp"
|
|
|
|
#include "logging/logger.hpp"
|
2016-08-02 05:14:09 +08:00
|
|
|
|
|
|
|
namespace logging
|
|
|
|
{
|
|
|
|
|
|
|
|
extern std::unique_ptr<Log> log;
|
|
|
|
|
|
|
|
extern Logger debug_logger;
|
|
|
|
|
|
|
|
template <class... Args>
|
|
|
|
void debug(Args&&... args)
|
|
|
|
{
|
|
|
|
debug_logger.debug(std::forward<Args>(args)...);
|
|
|
|
}
|
|
|
|
|
2016-08-11 11:47:30 +08:00
|
|
|
extern Logger info_logger;
|
|
|
|
|
|
|
|
template <class... Args>
|
|
|
|
void info(Args&&... args)
|
|
|
|
{
|
|
|
|
info_logger.info(std::forward<Args>(args)...);
|
|
|
|
}
|
|
|
|
|
2016-08-02 05:14:09 +08:00
|
|
|
void init_async();
|
|
|
|
void init_sync();
|
|
|
|
|
|
|
|
}
|