31 lines
313 B
C
31 lines
313 B
C
|
#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);
|
||
|
|
||
|
|
||
|
|
||
|
};
|
||
|
|
||
|
|