cppfig 0.1.0
Modern C++20 compile-time type-safe configuration library
Loading...
Searching...
No Matches
cppfig::Logger Class Reference

Simple logger that writes to stdout/stderr. More...

#include <logging.h>

Static Public Member Functions

static void Info (std::string_view message)
 Logs an info message to stdout.
 
static void Warn (std::string_view message)
 Logs a warning message to stderr.
 
static void Error (std::string_view message)
 Logs an error message to stderr.
 
static void Log (LogLevel level, std::string_view message)
 Logs a message at the specified level.
 
template<typename... Args>
static void InfoF (const char *format, Args... args)
 Logs a formatted info message to stdout.
 
template<typename... Args>
static void WarnF (const char *format, Args... args)
 Logs a formatted warning message to stderr.
 
template<typename... Args>
static void ErrorF (const char *format, Args... args)
 Logs a formatted error message to stderr.
 

Detailed Description

Simple logger that writes to stdout/stderr.

Member Function Documentation

◆ Error()

static void cppfig::Logger::Error ( std::string_view  message)
inlinestatic

Logs an error message to stderr.

◆ ErrorF()

template<typename... Args>
static void cppfig::Logger::ErrorF ( const char *  format,
Args...  args 
)
inlinestatic

Logs a formatted error message to stderr.

◆ Info()

static void cppfig::Logger::Info ( std::string_view  message)
inlinestatic

Logs an info message to stdout.

◆ InfoF()

template<typename... Args>
static void cppfig::Logger::InfoF ( const char *  format,
Args...  args 
)
inlinestatic

Logs a formatted info message to stdout.

◆ Log()

static void cppfig::Logger::Log ( LogLevel  level,
std::string_view  message 
)
inlinestatic

Logs a message at the specified level.

◆ Warn()

static void cppfig::Logger::Warn ( std::string_view  message)
inlinestatic

Logs a warning message to stderr.

◆ WarnF()

template<typename... Args>
static void cppfig::Logger::WarnF ( const char *  format,
Args...  args 
)
inlinestatic

Logs a formatted warning message to stderr.


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