Skip to main content

chronon::observe::Format

Compile-time format string wrapper with lazy id registration. More...

#include <ObserveApi.hpp>

Public Functions

Name
template <typename... ArgTypes>
FormatId
getIdWithTypes(std::string_view file ="", uint32_t line =0, bool is_log =false, LogLevel level =LogLevel::Info)
Version with argument types, used to properly reconstruct binary trace records.
FormatIdgetId(std::string_view file ="", uint32_t line =0, bool is_log =false, LogLevel level =LogLevel::Info)

Public Attributes

Name
std::string_viewvalue

Detailed Description

template <FixedString Fmt>
struct chronon::observe::Format;

Compile-time format string wrapper with lazy id registration.

Each unique format string is a unique type, giving each call site its own static FormatId cache.

Public Functions Documentation

function getIdWithTypes

template <typename... ArgTypes>
static inline FormatId getIdWithTypes(
std::string_view file ="",
uint32_t line =0,
bool is_log =false,
LogLevel level =LogLevel::Info
)

Version with argument types, used to properly reconstruct binary trace records.

function getId

static inline FormatId getId(
std::string_view file ="",
uint32_t line =0,
bool is_log =false,
LogLevel level =LogLevel::Info
)

Public Attributes Documentation

variable value

static std::string_view value = Fmt;

Updated on 2026-05-26 at 05:42:32 +0000