NeoN
A framework for CFD software
Loading...
Searching...
No Matches
NeoN::Logging::LogEvent Class Reference

A class to represent a LogEvent. More...

#include <logging.hpp>

Public Member Functions

 LogEvent (std::source_location locationIn, Level levelIn, std::string_view messageIn)
std::string toJson (std::string_view delim)
 convert event to a json string

Public Attributes

std::source_location location
Level level
std::string message
std::chrono::time_point< std::chrono::steady_clock > creationTS

Detailed Description

A class to represent a LogEvent.

Definition at line 41 of file logging.hpp.

Constructor & Destructor Documentation

◆ LogEvent()

NeoN::Logging::LogEvent::LogEvent ( std::source_location locationIn,
Level levelIn,
std::string_view messageIn )
inline

Definition at line 46 of file logging.hpp.

Member Function Documentation

◆ toJson()

std::string NeoN::Logging::LogEvent::toJson ( std::string_view delim)
inline

convert event to a json string

Definition at line 61 of file logging.hpp.

Member Data Documentation

◆ creationTS

std::chrono::time_point<std::chrono::steady_clock> NeoN::Logging::LogEvent::creationTS

Definition at line 58 of file logging.hpp.

◆ level

Level NeoN::Logging::LogEvent::level

Definition at line 54 of file logging.hpp.

◆ location

std::source_location NeoN::Logging::LogEvent::location

Definition at line 52 of file logging.hpp.

◆ message

std::string NeoN::Logging::LogEvent::message

Definition at line 56 of file logging.hpp.


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