Public Member Functions | Public Attributes | List of all members
uuid::log::Message Struct Reference

Log message text with timestamp and logger attributes. More...

#include <uuid/log.h>

Collaboration diagram for uuid::log::Message:
Collaboration graph
[legend]

Public Member Functions

 Message (uint64_t uptime_ms, Level level, Facility facility, const __FlashStringHelper *name, const std::string &&text)
 Create a new log message (not directly useful). More...
 

Public Attributes

const uint64_t uptime_ms
 System uptime at the time the message was logged. More...
 
const Level level
 Severity level of the message. More...
 
const Facility facility
 Facility type of the process that logged the message. More...
 
const __FlashStringHelper * name
 Name of the logger used (flash string). More...
 
const std::string text
 Formatted log message text. More...
 

Detailed Description

Log message text with timestamp and logger attributes.

These will be created when a message is logged and then passed to all registered handlers.

Since
1.0.0

Definition at line 198 of file log.h.

Constructor & Destructor Documentation

◆ Message()

uuid::log::Message::Message ( uint64_t  uptime_ms,
Level  level,
Facility  facility,
const __FlashStringHelper *  name,
const std::string &&  text 
)

Create a new log message (not directly useful).

Parameters
[in]uptime_msSystem uptime, see uuid::get_uptime_ms().
[in]levelSeverity level of the message.
[in]facilityFacility type of the process logging the message.
[in]nameLogger name (flash string).
[in]textLog message text.
Since
1.0.0

Definition at line 38 of file log.cpp.

Member Data Documentation

◆ facility

const Facility uuid::log::Message::facility

Facility type of the process that logged the message.

Since
1.0.0

Definition at line 232 of file log.h.

◆ level

const Level uuid::log::Message::level

Severity level of the message.

Since
1.0.0

Definition at line 225 of file log.h.

◆ name

const __FlashStringHelper* uuid::log::Message::name

Name of the logger used (flash string).

Since
1.0.0

Definition at line 239 of file log.h.

◆ text

const std::string uuid::log::Message::text

Formatted log message text.

Does not include any of the other message attributes, those must be added by the handler when outputting messages.

Since
1.0.0

Definition at line 249 of file log.h.

◆ uptime_ms

const uint64_t uuid::log::Message::uptime_ms

System uptime at the time the message was logged.

See also
uuid::get_uptime_ms()
Since
1.0.0

Definition at line 218 of file log.h.


The documentation for this struct was generated from the following files: