quill
Public Types | Public Member Functions | Static Public Member Functions | List of all members
MacroMetadata Class Reference

Captures and stores information about a logging event in compile time. More...

#include <MacroMetadata.h>

Public Types

enum  Event : uint8_t {
  None, Log, InitBacktrace, FlushBacktrace,
  Flush, LogWithRuntimeMetadataDeepCopy, LogWithRuntimeMetadataHybridCopy, LogWithRuntimeMetadataShallowCopy,
  LoggerRemovalRequest
}
 

Public Member Functions

constexpr MacroMetadata (char const *source_location, char const *caller_function, char const *message_format, char const *tags, LogLevel log_level, Event event) noexcept
 
QUILL_NODISCARD char const * source_location () const noexcept
 
QUILL_NODISCARD char const * caller_function () const noexcept
 
QUILL_NODISCARD char const * message_format () const noexcept
 
QUILL_NODISCARD char const * line () const noexcept
 
QUILL_NODISCARD std::string_view full_path () const noexcept
 
QUILL_NODISCARD std::string_view file_name () const noexcept
 
QUILL_NODISCARD char const * short_source_location () const noexcept
 
QUILL_NODISCARD LogLevel log_level () const noexcept
 
QUILL_NODISCARD char const * tags () const noexcept
 
QUILL_NODISCARD constexpr bool has_named_args () const noexcept
 
QUILL_NODISCARD Event event () const noexcept
 

Static Public Member Functions

static QUILL_NODISCARD constexpr bool _contains_named_args (std::string_view fmt) noexcept
 

Detailed Description

Captures and stores information about a logging event in compile time.


The documentation for this class was generated from the following file: