dslibris/source/log.cpp
2020-12-06 16:26:47 -05:00

26 lines
357 B
C++

/*
* log.cpp
*
* Created on: Jul 11, 2009
* Author: rhaleblian
*/
#include "main.h"
#include "log.h"
void Log(const char *msg)
{
Log("%s", msg);
}
void Log(std::string msg)
{
Log("%s", msg.c_str());
}
void Log(const char *format, const char *msg)
{
FILE *logfile = fopen(LOGFILEPATH, "a");
fprintf(logfile,format,msg);
fclose(logfile);
}