CCF
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Friends | List of all members
ccf::logger::LogLine Struct Reference

#include <logger.h>

Public Member Functions

 LogLine (LoggerLevel level_, std::string_view tag_, std::string_view file_name_, size_t line_number_)
 
template<typename T >
LogLineoperator<< (const T &item)
 
LogLineoperator<< (std::ostream &(*f)(std::ostream &))
 
void finalize ()
 

Public Attributes

LoggerLevel log_level
 
std::string tag
 
std::string file_name
 
size_t line_number
 
uint16_t thread_id
 
std::ostringstream ss
 
std::string msg
 

Friends

struct Out
 

Constructor & Destructor Documentation

◆ LogLine()

ccf::logger::LogLine::LogLine ( LoggerLevel  level_,
std::string_view  tag_,
std::string_view  file_name_,
size_t  line_number_ 
)
inline

Member Function Documentation

◆ finalize()

void ccf::logger::LogLine::finalize ( )
inline

◆ operator<<() [1/2]

template<typename T >
LogLine & ccf::logger::LogLine::operator<< ( const T &  item)
inline

◆ operator<<() [2/2]

LogLine & ccf::logger::LogLine::operator<< ( std::ostream &(*)(std::ostream &)  f)
inline

Friends And Related Symbol Documentation

◆ Out

friend struct Out
friend

Member Data Documentation

◆ file_name

std::string ccf::logger::LogLine::file_name

◆ line_number

size_t ccf::logger::LogLine::line_number

◆ log_level

LoggerLevel ccf::logger::LogLine::log_level

◆ msg

std::string ccf::logger::LogLine::msg

◆ ss

std::ostringstream ccf::logger::LogLine::ss

◆ tag

std::string ccf::logger::LogLine::tag

◆ thread_id

uint16_t ccf::logger::LogLine::thread_id

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