farm-ng-core
farm_ng::StreamLogger Class Reference

#include <logger.h>

Classes

struct  LogClock
 

Public Member Functions

void setHeaderFormat (std::string const &str)
 
std::string getHeaderFormat () const
 
void setLogLevel (LogLevel level)
 
LogLevel getLogLevel ()
 
void setLogClock (LogClock log_clock)
 
template<typename... TT>
void log (LogLevel log_level, std::string const &header_text, std::string const &file, int line, std::string const &function, std::string const &message, TT &&... args)
 
void log (LogLevel log_level, std::string const &header_text, std::string const &file, int line, std::string const &function)
 

Member Function Documentation

◆ getHeaderFormat()

auto farm_ng::StreamLogger::getHeaderFormat ( ) const

◆ getLogLevel()

auto farm_ng::StreamLogger::getLogLevel ( )

◆ log() [1/2]

void farm_ng::StreamLogger::log ( LogLevel  log_level,
std::string const &  header_text,
std::string const &  file,
int  line,
std::string const &  function 
)
inline

◆ log() [2/2]

template<typename... TT>
void farm_ng::StreamLogger::log ( LogLevel  log_level,
std::string const &  header_text,
std::string const &  file,
int  line,
std::string const &  function,
std::string const &  message,
TT &&...  args 
)
inline

◆ setHeaderFormat()

void farm_ng::StreamLogger::setHeaderFormat ( std::string const &  str)

◆ setLogClock()

void farm_ng::StreamLogger::setLogClock ( LogClock  log_clock)

◆ setLogLevel()

void farm_ng::StreamLogger::setLogLevel ( LogLevel  level)

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