Very Simple Cross-Platform Library
Static Public Member Functions | List of all members
hu::varadiistvan::scpl::Log Class Reference

#include <Log.h>

Static Public Member Functions

static void registerFunction (std::function< void(const char *)> fn)
 
static void log (const char *format,...)
 

Detailed Description

Basic logging facility. A function may be registered to receive the log entries. Otherwise, they are printed to the standard output.

Definition at line 45 of file Log.h.

Member Function Documentation

◆ log()

void Log::log ( const char *  format,
  ... 
)
static

Print into the log

Definition at line 61 of file Log.cc.

◆ registerFunction()

void Log::registerFunction ( std::function< void(const char *)>  fn)
static

Register the given function to receive the formatted log entries.

Definition at line 54 of file Log.cc.


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