ASIO Client Server Framework
Loading...
Searching...
No Matches
acsf::Log Struct Reference

One log entry. Every field is optional and only the fields that are set appear in the output. More...

#include <logger.h>

Public Member Functions

std::string toString () const
 Formats the entry as a single line of text.

Public Attributes

std::optional< uint64_t > isFrom
std::optional< LogLevel > level
std::optional< std::chrono::system_clock::time_point > timestamp
std::optional< std::string > message
std::optional< int > errorValue
std::optional< std::string > errorMessage
std::optional< std::string > localAddress
std::optional< uint16_t > localPort
std::optional< std::string > remoteAddress
std::optional< uint16_t > remotePort

Detailed Description

One log entry. Every field is optional and only the fields that are set appear in the output.

Member Data Documentation

◆ errorMessage

std::optional<std::string> acsf::Log::errorMessage

Error text (boost::system::error_code::message()).

◆ errorValue

std::optional<int> acsf::Log::errorValue

Numeric error code (boost::system::error_code::value()).

◆ isFrom

std::optional<uint64_t> acsf::Log::isFrom

Id of the connection the entry is about.

◆ level

std::optional<LogLevel> acsf::Log::level

Severity.

◆ localAddress

std::optional<std::string> acsf::Log::localAddress

Local IP address.

◆ localPort

std::optional<uint16_t> acsf::Log::localPort

Local port.

◆ message

std::optional<std::string> acsf::Log::message

Human readable description.

◆ remoteAddress

std::optional<std::string> acsf::Log::remoteAddress

Remote IP address.

◆ remotePort

std::optional<uint16_t> acsf::Log::remotePort

Remote port.

◆ timestamp

std::optional<std::chrono::system_clock::time_point> acsf::Log::timestamp

When it happened. Filled in automatically when the entry is pushed.


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