WPILibC++ 2027.0.0-alpha-4
Loading...
Searching...
No Matches
wpi::nt::LogMessage Class Reference

NetworkTables log message. More...

#include <wpi/nt/ntcore_cpp.hpp>

Public Member Functions

 LogMessage ()=default
 LogMessage (unsigned int level, std::string_view filename, unsigned int line, std::string_view message)

Public Attributes

unsigned int level {0}
 Log level of the message.
std::string filename
 The filename of the source file that generated the message.
unsigned int line {0}
 The line number in the source file that generated the message.
std::string message
 The message.

Detailed Description

NetworkTables log message.

Constructor & Destructor Documentation

◆ LogMessage() [1/2]

wpi::nt::LogMessage::LogMessage ( )
default

◆ LogMessage() [2/2]

wpi::nt::LogMessage::LogMessage ( unsigned int level,
std::string_view filename,
unsigned int line,
std::string_view message )
inline

Member Data Documentation

◆ filename

std::string wpi::nt::LogMessage::filename

The filename of the source file that generated the message.

◆ level

unsigned int wpi::nt::LogMessage::level {0}

Log level of the message.

See NT_LogLevel.

◆ line

unsigned int wpi::nt::LogMessage::line {0}

The line number in the source file that generated the message.

◆ message

std::string wpi::nt::LogMessage::message

The message.


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