WPILibC++ 2027.0.0-alpha-4
Loading...
Searching...
No Matches
wpi::util::Logger Class Reference

#include <wpi/util/Logger.hpp>

Public Types

using LogFunc

Public Member Functions

 Logger ()=default
 Logger (LogFunc func)
 Logger (LogFunc func, unsigned int min_level)
void SetLogger (LogFunc func)
void set_min_level (unsigned int level)
unsigned int min_level () const
void DoLog (unsigned int level, const char *file, unsigned int line, const char *msg)
void LogV (unsigned int level, const char *file, unsigned int line, fmt::string_view format, fmt::format_args args)
template<typename... Args>
void Log (unsigned int level, const char *file, unsigned int line, fmt::string_view format, Args &&... args)
bool HasLogger () const

Member Typedef Documentation

◆ LogFunc

Initial value:
std::function<void(unsigned int level, const char* file,
unsigned int line, const char* msg)>
then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file
Definition ThirdPartyNotices.txt:204

Constructor & Destructor Documentation

◆ Logger() [1/3]

wpi::util::Logger::Logger ( )
default

◆ Logger() [2/3]

wpi::util::Logger::Logger ( LogFunc func)
inlineexplicit

◆ Logger() [3/3]

wpi::util::Logger::Logger ( LogFunc func,
unsigned int min_level )
inline

Member Function Documentation

◆ DoLog()

void wpi::util::Logger::DoLog ( unsigned int level,
const char * file,
unsigned int line,
const char * msg )

◆ HasLogger()

bool wpi::util::Logger::HasLogger ( ) const
inline

◆ Log()

template<typename... Args>
void wpi::util::Logger::Log ( unsigned int level,
const char * file,
unsigned int line,
fmt::string_view format,
Args &&... args )
inline

◆ LogV()

void wpi::util::Logger::LogV ( unsigned int level,
const char * file,
unsigned int line,
fmt::string_view format,
fmt::format_args args )

◆ min_level()

unsigned int wpi::util::Logger::min_level ( ) const
inline

◆ set_min_level()

void wpi::util::Logger::set_min_level ( unsigned int level)
inline

◆ SetLogger()

void wpi::util::Logger::SetLogger ( LogFunc func)
inline

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