HighMap library (C++)
Loading...
Searching...
No Matches
logger.hpp File Reference

Custom logger utility with spdlog-like formatting and source location. More...

Go to the source code of this file.

Classes

struct  hmap::log::format_string_with_loc< Args >
 

Namespaces

namespace  hmap
 
namespace  hmap::log
 
namespace  hmap::log::detail
 

Enumerations

enum class  hmap::log::detail::Level { hmap::log::detail::Trace , hmap::log::detail::Info , hmap::log::detail::Warn , hmap::log::detail::Error }
 

Functions

template<typename... Args>
void hmap::log::trace (Args &&...args)
 
template<typename... Args>
void hmap::log::info (Args &&...args)
 
template<typename... Args>
void hmap::log::warn (Args &&...args)
 
template<typename... Args>
void hmap::log::error (Args &&...args)
 
const char * hmap::log::detail::level_to_string (Level level)
 
constexpr std::string_view hmap::log::detail::get_filename (std::string_view path)
 
std::string hmap::log::detail::format_fixed_width (std::string_view str, size_t width)
 
void hmap::log::detail::log_impl (Level level, std::string_view msg, const std::source_location &loc)
 
template<typename... Args>
void hmap::log::trace (format_string_with_loc< std::type_identity_t< Args >... > fl, Args &&...args)
 
void hmap::log::trace (std::string_view message, const std::source_location &loc=std::source_location::current())
 
template<typename... Args>
void hmap::log::trace (const std::source_location &loc, std::format_string< Args... > fmt, Args &&...args)
 
void hmap::log::trace (const std::source_location &loc, std::string_view message)
 
template<typename... Args>
void hmap::log::info (format_string_with_loc< std::type_identity_t< Args >... > fl, Args &&...args)
 
void hmap::log::info (std::string_view message, const std::source_location &loc=std::source_location::current())
 
template<typename... Args>
void hmap::log::info (const std::source_location &loc, std::format_string< Args... > fmt, Args &&...args)
 
void hmap::log::info (const std::source_location &loc, std::string_view message)
 
template<typename... Args>
void hmap::log::warn (format_string_with_loc< std::type_identity_t< Args >... > fl, Args &&...args)
 
void hmap::log::warn (std::string_view message, const std::source_location &loc=std::source_location::current())
 
template<typename... Args>
void hmap::log::warn (const std::source_location &loc, std::format_string< Args... > fmt, Args &&...args)
 
void hmap::log::warn (const std::source_location &loc, std::string_view message)
 
template<typename... Args>
void hmap::log::error (format_string_with_loc< std::type_identity_t< Args >... > fl, Args &&...args)
 
void hmap::log::error (std::string_view message, const std::source_location &loc=std::source_location::current())
 
template<typename... Args>
void hmap::log::error (const std::source_location &loc, std::format_string< Args... > fmt, Args &&...args)
 
void hmap::log::error (const std::source_location &loc, std::string_view message)
 

Detailed Description

Custom logger utility with spdlog-like formatting and source location.

Author
Otto Link (otto..nosp@m.link.nosp@m..bv@g.nosp@m.mail.nosp@m..com)