This repository has been archived on 2025-03-22. You can view files and clone it, but cannot push or open issues or pull requests.
travelguide/env/logging.hpp
2013-08-05 03:10:18 +03:00

17 lines
359 B
C++

#pragma once
#include "message_list.hpp"
#include "source_address.hpp"
namespace dbg
{
enum LogPriority { LOG_DEBUG, LOG_INFO, LOG_WARNING, LOG_ERROR };
string ToString(LogPriority pr);
void Print(LogPriority pr, SourceAddress const & sa, string const & msg);
}
#define LOG(pr, message) ::dbg::Print(::dbg::LOG_##pr, SRC(), ::msg::MessageList message)