chronon::observe::FormatInfo
Metadata for a registered format string.
#include <FormatRegistry.hpp>
Public Functions
| Name | |
|---|---|
| FormatInfo() =default | |
| FormatInfo(std::string_view fmt, std::string_view f, uint32_t ln, std::initializer_list< ArgType > types, bool log =false, LogLevel level =LogLevel::Info) |
Public Attributes
| Name | |
|---|---|
| LogLevel | log_level Only valid if is_log == true. |
| uint32_t | line |
| bool | is_log true for LOG, false for TRACE. |
| std::string | format_string |
| std::string_view | file |
| CompiledFormat | compiled Lazy-compiled on first reconstruction. |
| std::array< ArgType, MAX_FORMAT_ARGS > | arg_types |
| uint8_t | arg_count |
Public Functions Documentation
function FormatInfo
FormatInfo() =default
function FormatInfo
inline FormatInfo(
std::string_view fmt,
std::string_view f,
uint32_t ln,
std::initializer_list< ArgType > types,
bool log =false,
LogLevel level =LogLevel::Info
)
Public Attributes Documentation
variable log_level
LogLevel log_level;
Only valid if is_log == true.
variable line
uint32_t line;
variable is_log
bool is_log;
true for LOG, false for TRACE.
variable format_string
std::string format_string;
variable file
std::string_view file;
variable compiled
CompiledFormat compiled;
Lazy-compiled on first reconstruction.
variable arg_types
std::array< ArgType, MAX_FORMAT_ARGS > arg_types;
variable arg_count
uint8_t arg_count;
Updated on 2026-05-26 at 05:42:32 +0000