struct mola::LogRecord

Overview

One log message, as delivered to LogHub sinks. The views are only valid during the sink call.

#include <LogHub.h>

struct LogRecord
{
    // fields

    std::string_view source;
    std::string_view text;
    mrpt::system::VerbosityLevel level = mrpt::system::LVL_INFO;
    mrpt::Clock::time_point timestamp;
};

Fields

std::string_view source

Module instance name, or “<module>/<child>” for child loggers.

std::string_view text

As passed to the logger.