memgraph/include/logging/default.hpp

31 lines
441 B
C++
Raw Normal View History

2016-08-02 05:14:09 +08:00
#pragma once
#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)...);
}
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();
}