WPILibC++ 2024.3.2
nt::LogMessage Class Reference

NetworkTables log message. More...

#include <ntcore_cpp.h>

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. More...
 
std::string filename
 The filename of the source file that generated the message. More...
 
unsigned int line {0}
 The line number in the source file that generated the message. More...
 
std::string message
 The message. More...
 

Detailed Description

NetworkTables log message.

Constructor & Destructor Documentation

◆ LogMessage() [1/2]

nt::LogMessage::LogMessage ( )
default

◆ LogMessage() [2/2]

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

Member Data Documentation

◆ filename

std::string nt::LogMessage::filename

The filename of the source file that generated the message.

◆ level

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

Log level of the message.

See NT_LogLevel.

◆ line

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

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

◆ message

std::string nt::LogMessage::message

The message.


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