Module containing a small logger.
More...
|
| Config & | config () |
| |
| template<Level level> |
| consteval std::string_view | levelToString () |
| |
| constexpr std::ostream & | operator<< (std::ostream &ss, Level level) |
| |
| template<Level level, class... Args> |
| constexpr void | log (const std::format_string< Args... > &fmt, Args &&... args) |
| |
| template<class... Args> |
| constexpr void | debug (const std::format_string< Args... > &format, Args &&... args) |
| |
| template<class... Args> |
| constexpr void | info (const std::format_string< Args... > &format, Args &&... args) |
| |
| template<class... Args> |
| constexpr void | warn (const std::format_string< Args... > &format, Args &&... args) |
| |
| template<class... Args> |
| constexpr void | error (const std::format_string< Args... > &format, Args &&... args) |
| |
| template<class... Args> |
| constexpr void | critical (const std::format_string< Args... > &format, Args &&... args) |
| |
Module containing a small logger.
Does the bare minimum to be a fancy terminal logger. Based on <format> with some features from <stc/Colour.hpp> used.
◆ Level
| Enumerator |
|---|
| Debug | |
| Info | |
| Warning | |
| Error | |
| Critical | |
◆ config()
◆ critical()
template<class... Args>
| constexpr void minilog::critical |
( |
const std::format_string< Args... > & |
format, |
|
|
Args &&... |
args |
|
) |
| |
|
inlineconstexpr |
◆ debug()
template<class... Args>
| constexpr void minilog::debug |
( |
const std::format_string< Args... > & |
format, |
|
|
Args &&... |
args |
|
) |
| |
|
inlineconstexpr |
◆ error()
template<class... Args>
| constexpr void minilog::error |
( |
const std::format_string< Args... > & |
format, |
|
|
Args &&... |
args |
|
) |
| |
|
inlineconstexpr |
◆ info()
template<class... Args>
| constexpr void minilog::info |
( |
const std::format_string< Args... > & |
format, |
|
|
Args &&... |
args |
|
) |
| |
|
inlineconstexpr |
◆ levelToString()
| consteval std::string_view minilog::levelToString |
( |
| ) |
|
◆ log()
template<
Level level, class... Args>
| constexpr void minilog::log |
( |
const std::format_string< Args... > & |
fmt, |
|
|
Args &&... |
args |
|
) |
| |
|
inlineconstexpr |
◆ operator<<()
| constexpr std::ostream & minilog::operator<< |
( |
std::ostream & |
ss, |
|
|
Level |
level |
|
) |
| |
|
inlineconstexpr |
◆ warn()
template<class... Args>
| constexpr void minilog::warn |
( |
const std::format_string< Args... > & |
format, |
|
|
Args &&... |
args |
|
) |
| |
|
inlineconstexpr |