mirror of
https://github.com/rhaleblian/dslibris.git
synced 2025-06-18 16:55:41 -04:00
26 lines
357 B
C++
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);
|
|
}
|