Class representing a single log entry / message. More...
#include <eagine/logging/entry.hpp>
Public Member Functions | |
log_entry (identifier source_id, logger_instance_id instance_id, log_event_severity severity, string_view format, logger_backend *backend) noexcept | |
Constructor. | |
log_entry (log_entry &&)=delete | |
Not moveable. | |
log_entry (const log_entry &)=delete | |
Not copyable. | |
auto | operator= (log_entry &&)=delete |
Not copy assignable. | |
auto | operator= (const log_entry &)=delete |
Not move assignable. | |
~log_entry () noexcept | |
Destructor. Passed the actual entry to the backend. | |
auto | set_format (string_view format) noexcept -> auto & |
Sets the format string for this log entry. More... | |
auto | arg (identifier name, identifier tag, identifier value) noexcept -> auto & |
Adds a new message argument with identifier value. More... | |
auto | arg (identifier name, identifier value) noexcept -> auto & |
Adds a new message argument with identifier value. More... | |
auto | arg (identifier name, identifier tag, message_id value) noexcept -> auto & |
Adds a new message argument with message_id type value. More... | |
auto | arg (identifier name, message_id value) noexcept -> auto & |
Adds a new message argument with identifier value. More... | |
auto | arg (identifier name, identifier tag, std::int64_t value) noexcept -> auto & |
Adds a new message argument with 64-bit signed integer value. More... | |
auto | arg (identifier name, std::int64_t value) noexcept -> auto & |
Adds a new message argument with 64-bit signed integer value. More... | |
auto | arg (identifier name, identifier tag, span< const std::int64_t >) noexcept -> log_entry & |
Adds a new message argument with 64-bit signed integer span. More... | |
auto | arg (identifier name, span< const std::int64_t > values) noexcept -> auto & |
Adds a new message argument with 64-bit signed integer span. More... | |
auto | arg (identifier name, identifier tag, std::int32_t value) noexcept -> auto & |
Adds a new message argument with 32-bit signed integer value. More... | |
auto | arg (identifier name, std::int32_t value) noexcept -> auto & |
Adds a new message argument with 32-bit signed integer value. More... | |
auto | arg (identifier name, identifier tag, span< const std::int32_t >) noexcept -> log_entry & |
Adds a new message argument with 32-bit signed integer span. More... | |
auto | arg (identifier name, span< const std::int32_t > values) noexcept -> auto & |
Adds a new message argument with 32-bit signed integer span. More... | |
auto | arg (identifier name, identifier tag, std::int16_t value) noexcept -> auto & |
Adds a new message argument with 16-bit signed integer value. More... | |
auto | arg (identifier name, std::int16_t value) noexcept -> auto & |
Adds a new message argument with 16-bit signed integer value. More... | |
auto | arg (identifier name, identifier tag, span< const std::int16_t >) noexcept -> log_entry & |
Adds a new message argument with 16-bit signed integer span. More... | |
auto | arg (identifier name, span< const std::int16_t > values) noexcept -> auto & |
Adds a new message argument with 16-bit signed integer span. More... | |
auto | arg (identifier name, identifier tag, std::uint64_t value) noexcept -> auto & |
Adds a new message argument with 64-bit unsigned integer value. More... | |
auto | arg (identifier name, std::uint64_t value) noexcept -> auto & |
Adds a new message argument with 64-bit unsigned integer value. More... | |
auto | arg (identifier name, identifier tag, span< const std::uint64_t >) noexcept -> log_entry & |
Adds a new message argument with 64-bit unsigned integer span. More... | |
auto | arg (identifier name, span< const std::uint64_t > values) noexcept -> auto & |
Adds a new message argument with 64-bit unsigned integer span. More... | |
auto | arg (identifier name, identifier tag, std::uint32_t value) noexcept -> auto & |
Adds a new message argument with 32-bit unsigned integer value. More... | |
auto | arg (identifier name, std::uint32_t value) noexcept -> auto & |
Adds a new message argument with 32-bit unsigned integer value. More... | |
auto | arg (identifier name, identifier tag, span< const std::uint32_t >) noexcept -> log_entry & |
Adds a new message argument with 32-bit unsigned integer span. More... | |
auto | arg (identifier name, span< const std::uint32_t > values) noexcept -> auto & |
Adds a new message argument with 32-bit unsigned integer span. More... | |
auto | arg (identifier name, identifier tag, std::uint16_t value) noexcept -> auto & |
Adds a new message argument with 16-bit unsigned integer value. More... | |
auto | arg (identifier name, std::uint16_t value) noexcept -> auto & |
Adds a new message argument with 16-bit unsigned integer value. More... | |
auto | arg (identifier name, identifier tag, span< const std::uint16_t >) noexcept -> log_entry & |
Adds a new message argument with 16-bit unsigned integer span. More... | |
auto | arg (identifier name, span< const std::uint16_t > values) noexcept -> auto & |
Adds a new message argument with 16-bit unsigned integer span. More... | |
auto | arg (identifier name, identifier tag, float value) noexcept -> auto & |
Adds a new message argument with floating-point value. More... | |
auto | arg (identifier name, float value) noexcept -> auto & |
Adds a new message argument with floating-point value. More... | |
auto | arg (identifier name, double value) noexcept -> auto & |
Adds a new message argument with double-precision float value. More... | |
auto | arg (identifier name, identifier tag, span< const float >) noexcept -> log_entry & |
Adds a new message argument with floating-point span. More... | |
auto | arg (identifier name, span< const float > values) noexcept -> auto & |
Adds a new message argument with floating-point span. More... | |
auto | arg (identifier name, identifier tag, float min, float value, float max) noexcept -> auto & |
Adds a new message argument with floating-point value. More... | |
auto | arg (identifier name, float min, float value, float max) noexcept -> auto & |
Adds a new message argument with floating-point value. More... | |
template<typename R , typename P > | |
auto | arg (identifier name, identifier tag, std::chrono::duration< R, P > value) noexcept -> auto & |
Adds a new message argument with time duration value. More... | |
template<typename R , typename P > | |
auto | arg (identifier name, std::chrono::duration< R, P > value) noexcept -> auto & |
Adds a new message argument with time duration value. More... | |
auto | arg (identifier name, identifier tag, string_view value) noexcept -> auto & |
Adds a new message argument with string value. More... | |
auto | arg (identifier name, string_view value) noexcept -> auto & |
Adds a new message argument with string value. More... | |
auto | arg (identifier name, identifier tag, const std::string &value) noexcept -> auto & |
Adds a new message argument with string value. More... | |
auto | arg (identifier name, const std::string &value) noexcept -> auto & |
Adds a new message argument with string value. More... | |
auto | arg (identifier name, identifier tag, memory::const_block value) noexcept -> auto & |
Adds a new message argument with BLOB value. More... | |
auto | arg (identifier name, memory::const_block value) noexcept -> auto & |
Adds a new message argument with BLOB value. More... | |
template<typename Func > | |
auto | arg_func (Func function) -> auto & |
Adds a new message argument adapted by the specified function. | |
template<typename T > | |
auto | arg (identifier name, T &&value) noexcept -> std::enable_if_t< has_log_entry_adapter_v< std::decay_t< T >>, log_entry & > |
Adds a new message argument with adaptable-type value. More... | |
template<typename T , typename P , typename F > | |
auto | arg (identifier name, identifier tag, valid_if_or_fallback< T, P, F > &&opt) noexcept -> std::enable_if_t< has_log_entry_function_v< std::decay_t< T >> &&has_log_entry_function_v< std::decay_t< F >>, log_entry & > |
Adds a new message argument with valid_if_or_fallback value. More... | |
template<typename T , typename P , typename F > | |
auto | arg (identifier name, identifier tag, valid_if< T, P > opt, F fbck) noexcept -> std::enable_if_t< has_log_entry_function_v< std::decay_t< T >> &&has_log_entry_function_v< std::decay_t< F >>, log_entry & > |
Adds a new message argument with valid_if or fallback value. More... | |
auto | tag (identifier entry_tag) noexcept -> auto & |
Adds an optional tag to this log entry. | |
Class representing a single log entry / message.
|
inlinenoexcept |
Adds a new message argument with string value.
name | the argument name identifier. Used in message substitution. |
value | the value of the argument. |
|
inlinenoexcept |
Adds a new message argument with double-precision float value.
name | the argument name identifier. Used in message substitution. |
|
inlinenoexcept |
Adds a new message argument with floating-point value.
name | the argument name identifier. Used in message substitution. |
value | the value of the argument. |
|
inlinenoexcept |
Adds a new message argument with floating-point value.
name | the argument name identifier. Used in message substitution. |
value | the value of the argument. |
|
inlinenoexcept |
Adds a new message argument with string value.
name | the argument name identifier. Used in message substitution. |
tag | the argument type identifier. Used in value formatting. |
value | the value of the argument. |
|
inlinenoexcept |
Adds a new message argument with floating-point value.
name | the argument name identifier. Used in message substitution. |
tag | the argument type identifier. Used in value formatting. |
value | the value of the argument. |
|
inlinenoexcept |
Adds a new message argument with floating-point value.
name | the argument name identifier. Used in message substitution. |
tag | the argument type identifier. Used in value formatting. |
value | the value of the argument. |
|
inlinenoexcept |
Adds a new message argument with identifier value.
name | the argument name identifier. Used in message substitution. |
tag | the argument type identifier. Used in value formatting. |
value | the value of the argument. |
Referenced by arg().
|
inlinenoexcept |
Adds a new message argument with BLOB value.
name | the argument name identifier. Used in message substitution. |
tag | the argument type identifier. Used in value formatting. |
value | the value of the argument. |
|
inlinenoexcept |
Adds a new message argument with message_id type value.
name | the argument name identifier. Used in message substitution. |
tag | the argument type identifier. Used in value formatting. |
value | the value of the argument. |
|
noexcept |
Adds a new message argument with floating-point span.
name | the argument name identifier. Used in message substitution. |
tag | the argument type identifier. Used in value formatting. |
|
noexcept |
Adds a new message argument with 16-bit signed integer span.
name | the argument name identifier. Used in message substitution. |
tag | the argument type identifier. Used in value formatting. |
|
noexcept |
Adds a new message argument with 32-bit signed integer span.
name | the argument name identifier. Used in message substitution. |
tag | the argument type identifier. Used in value formatting. |
|
noexcept |
Adds a new message argument with 64-bit signed integer span.
name | the argument name identifier. Used in message substitution. |
tag | the argument type identifier. Used in value formatting. |
|
noexcept |
Adds a new message argument with 16-bit unsigned integer span.
name | the argument name identifier. Used in message substitution. |
tag | the argument type identifier. Used in value formatting. |
|
noexcept |
Adds a new message argument with 32-bit unsigned integer span.
name | the argument name identifier. Used in message substitution. |
tag | the argument type identifier. Used in value formatting. |
|
noexcept |
Adds a new message argument with 64-bit unsigned integer span.
name | the argument name identifier. Used in message substitution. |
tag | the argument type identifier. Used in value formatting. |
|
inlinenoexcept |
Adds a new message argument with time duration value.
name | the argument name identifier. Used in message substitution. |
tag | the argument type identifier. Used in value formatting. |
value | the value of the argument. |
|
inlinenoexcept |
Adds a new message argument with 16-bit signed integer value.
name | the argument name identifier. Used in message substitution. |
tag | the argument type identifier. Used in value formatting. |
value | the value of the argument. |
|
inlinenoexcept |
Adds a new message argument with 32-bit signed integer value.
name | the argument name identifier. Used in message substitution. |
tag | the argument type identifier. Used in value formatting. |
value | the value of the argument. |
|
inlinenoexcept |
Adds a new message argument with 64-bit signed integer value.
name | the argument name identifier. Used in message substitution. |
tag | the argument type identifier. Used in value formatting. |
value | the value of the argument. |
|
inlinenoexcept |
Adds a new message argument with 16-bit unsigned integer value.
name | the argument name identifier. Used in message substitution. |
tag | the argument type identifier. Used in value formatting. |
value | the value of the argument. |
|
inlinenoexcept |
Adds a new message argument with 32-bit unsigned integer value.
name | the argument name identifier. Used in message substitution. |
tag | the argument type identifier. Used in value formatting. |
value | the value of the argument. |
|
inlinenoexcept |
Adds a new message argument with 64-bit unsigned integer value.
name | the argument name identifier. Used in message substitution. |
tag | the argument type identifier. Used in value formatting. |
value | the value of the argument. |
|
inlinenoexcept |
Adds a new message argument with string value.
name | the argument name identifier. Used in message substitution. |
tag | the argument type identifier. Used in value formatting. |
value | the value of the argument. |
|
inlinenoexcept |
Adds a new message argument with valid_if or fallback value.
name | the argument name identifier. Used in message substitution. |
tag | the argument type identifier. Used in value formatting. |
opt | the primary optional value of the argument. |
fbck | the fallback value of opt is not valid. |
|
inlinenoexcept |
Adds a new message argument with valid_if_or_fallback value.
name | the argument name identifier. Used in message substitution. |
tag | the argument type identifier. Used in value formatting. |
opt | the value of the argument. |
|
inlinenoexcept |
Adds a new message argument with identifier value.
name | the argument name identifier. Used in message substitution. |
value | the value of the argument. |
|
inlinenoexcept |
Adds a new message argument with BLOB value.
name | the argument name identifier. Used in message substitution. |
value | the value of the argument. |
|
inlinenoexcept |
Adds a new message argument with identifier value.
name | the argument name identifier. Used in message substitution. |
value | the value of the argument. |
|
inlinenoexcept |
Adds a new message argument with floating-point span.
name | the argument name identifier. Used in message substitution. |
|
inlinenoexcept |
Adds a new message argument with 16-bit signed integer span.
name | the argument name identifier. Used in message substitution. |
|
inlinenoexcept |
Adds a new message argument with 32-bit signed integer span.
name | the argument name identifier. Used in message substitution. |
name | the argument name identifier. Used in message substitution. |
|
inlinenoexcept |
Adds a new message argument with 64-bit signed integer span.
name | the argument name identifier. Used in message substitution. |
|
inlinenoexcept |
Adds a new message argument with 16-bit unsigned integer span.
name | the argument name identifier. Used in message substitution. |
|
inlinenoexcept |
Adds a new message argument with 32-bit unsigned integer span.
name | the argument name identifier. Used in message substitution. |
|
inlinenoexcept |
Adds a new message argument with 64-bit unsigned integer span.
name | the argument name identifier. Used in message substitution. |
|
inlinenoexcept |
Adds a new message argument with time duration value.
name | the argument name identifier. Used in message substitution. |
value | the value of the argument. |
|
inlinenoexcept |
Adds a new message argument with 16-bit signed integer value.
name | the argument name identifier. Used in message substitution. |
value | the value of the argument. |
|
inlinenoexcept |
Adds a new message argument with 32-bit signed integer value.
name | the argument name identifier. Used in message substitution. |
value | the value of the argument. |
|
inlinenoexcept |
Adds a new message argument with 64-bit signed integer value.
name | the argument name identifier. Used in message substitution. |
value | the value of the argument. |
|
inlinenoexcept |
Adds a new message argument with 16-bit unsigned integer value.
name | the argument name identifier. Used in message substitution. |
value | the value of the argument. |
|
inlinenoexcept |
Adds a new message argument with 32-bit unsigned integer value.
name | the argument name identifier. Used in message substitution. |
value | the value of the argument. |
|
inlinenoexcept |
Adds a new message argument with 64-bit unsigned integer value.
name | the argument name identifier. Used in message substitution. |
value | the value of the argument. |
|
inlinenoexcept |
Adds a new message argument with string value.
name | the argument name identifier. Used in message substitution. |
value | the value of the argument. |
|
inlinenoexcept |
Adds a new message argument with adaptable-type value.
name | the argument name identifier. Used in message substitution. |
value | the value of the argument. |
|
inlinenoexcept |
Sets the format string for this log entry.
The format string can contain argument ${NAME}
placeholders, that are later substituted by the value of argument with the specified NAME.