UTILLib 2.0
Common C++ library with utilities.
Loading...
Searching...
No Matches
util::log::LogMessage Struct Reference

#include "util/logging.h"

Public Attributes

std::chrono::time_point< std::chrono::system_clock > timestamp
 Time of the message (UTC)
std::string message
 Message text.
LogSeverity severity = LogSeverity::kInfo
 Type of message.
util::log::Loc location
 Source file and function.

Detailed Description

Structure that holds one log message. The log message simply consist of time, severity, location and text. The severity is just a fancy name for log level while the location is the file, line and function where the message was created.

Member Data Documentation

◆ timestamp

std::chrono::time_point<std::chrono::system_clock> util::log::LogMessage::timestamp
Initial value:
=
std::chrono::system_clock::now()

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