quill
|
#include <LogFunctions.h>
Public Member Functions | |
Tags (char const *tag) | |
Single tag constructor. More... | |
template<typename... RestTags> | |
Tags (char const *first_tag, char const *second_tag, RestTags... rest_tags) | |
Constructor for multiple tags. More... | |
QUILL_NODISCARD char const * | value () const noexcept |
This file provides an alternative way to log messages without using macros, offering cleaner code in some scenarios at the cost of some performance.
The macro-free mode is implemented using __builtin_FILE(), __builtin_FUNCTION(), __builtin_LINE() which may vary by compiler:
While convenient, the macro-free approach has several performance implications compared to macros:
For performance-critical logging paths, use the macro-based logging interface. Tag structure for log messages that supports multiple tags
|
inlineexplicit |
Single tag constructor.
tag | Tag to add to the log message |
|
inline |
Constructor for multiple tags.
first_tag | Tag to add to the log message |
second_tag | Tag to add to the log message |
rest_tags | Tag to add to the log message |