cppSimpleLogger/logger.h

31 lines
313 B
C
Raw Normal View History

2018-10-16 23:34:45 +02:00
#include <stdio.h>
#include <time.h>
#include <string.h>
#include <iostream>
class Logger {
private:
ofstream logFile;
writeLog();
getTimestamp();
public:
Logger();
~Logger();
info(string s);
warning(string s);
error(string s);
};