Renderd7-nightly  v0.7.0
Log Class Reference

#include <log.hpp>

Public Member Functions

 Log ()
 
 ~Log ()
 
void Init (const char *filename)
 
void Write (std::string debug_text)
 
std::string logDate (void)
 Get the date.
 
std::string format (const std::string &fmt_str,...)
 

Private Attributes

std::string filename
 param filename the name of the logfile
 

Detailed Description

Log Class

Constructor & Destructor Documentation

◆ Log()

Log::Log ( )

Construct

◆ ~Log()

Log::~Log ( )

Deconstruct

Member Function Documentation

◆ Init()

void Log::Init ( const char *  filename)

Init the log file

Parameters
filenamename for the file

◆ Write()

void Log::Write ( std::string  debug_text)

Write Text to logfile

Parameters
debug_textyour text

◆ format()

std::string Log::format ( const std::string &  fmt_str,
  ... 
)

Format to logstyle

Parameters
fmt_strthe formatted style