Reels
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
reels::Logger Class Reference

A minimalist logger stored as a std::string providing sprintf functionality. More...

#include <reels.h>

Public Member Functions

void log_printf (const char *fmt,...)
 Logging method wrapper supporting variable arguments. More...
 
void log_printf (const char *fmt, va_list args)
 Add a nicely formatted string smaller than 256 chars to the logger. More...
 

Public Attributes

String log = ""
 The std::string storing the content of the Logger is public. More...
 

Detailed Description

A minimalist logger stored as a std::string providing sprintf functionality.

Member Function Documentation

◆ log_printf() [1/2]

void reels::Logger::log_printf ( const char *  fmt,
va_list  args 
)
inline

Add a nicely formatted string smaller than 256 chars to the logger.

Parameters
fmtA vsnprintf compatible format definition.
argsA variable list of arguments stored as a va_list.

◆ log_printf() [2/2]

void reels::Logger::log_printf ( const char *  fmt,
  ... 
)
inline

Logging method wrapper supporting variable arguments.

Parameters
fmtA vsnprintf compatible format definition.
...A variable list of arguments.

This method calls the other log_printf() override with the arguments in a va_list.

Member Data Documentation

◆ log

String reels::Logger::log = ""

The std::string storing the content of the Logger is public.


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