itch-mold-replay 1.0
Time-accurate NASDAQ TotalView-ITCH 5.0 replay over MoldUDP64
Loading...
Searching...
No Matches
log.h File Reference
#include <cstring>
#include <format>
#include <print>
#include <source_location>
#include <unistd.h>

Go to the source code of this file.

Namespaces

namespace  imr
 
namespace  imr::util
 
namespace  imr::util::log
 
namespace  imr::util::log::detail
 

Macros

#define IMR_LOG_LEVEL   0
 

Functions

template<typename... Args>
void imr::util::log::detail::base (std::FILE *stream, std::string_view tag, std::string_view color, std::format_string< Args... > fmt, Args &&... args)
 
template<typename... Args>
void imr::util::log::error (std::format_string< Args... > fmt, Args &&... args)
 
void imr::util::log::perror (std::source_location loc=std::source_location::current())
 
template<typename... Args>
void imr::util::log::warn (std::format_string< Args... > fmt, Args &&... args)
 
template<typename... Args>
void imr::util::log::info (std::format_string< Args... > fmt, Args &&... args)
 
template<typename... Args>
void imr::util::log::debug (std::format_string< Args... > fmt, Args &&... args)
 
template<typename... Args>
void imr::util::log::debug (std::source_location loc=std::source_location::current())
 

Variables

constexpr int imr::util::log::detail::level {IMR_LOG_LEVEL}
 
constexpr std::string_view imr::util::log::detail::color_error {"\033[1;31m"}
 
constexpr std::string_view imr::util::log::detail::color_warn {"\033[1;33m"}
 
constexpr std::string_view imr::util::log::detail::color_info {"\033[36m"}
 
constexpr std::string_view imr::util::log::detail::color_debug {"\033[35m"}
 

Macro Definition Documentation

◆ IMR_LOG_LEVEL

#define IMR_LOG_LEVEL   0