35 lines
471 B
C++
35 lines
471 B
C++
#ifndef __FISHBONE_LOG_H__
|
|
#define __FISHBONE_LOG_H__
|
|
|
|
#include <fishbone/pre.h>
|
|
|
|
namespace fishbone {
|
|
class Logger;
|
|
};
|
|
|
|
/* no includes */
|
|
|
|
namespace fishbone {
|
|
class Logger {
|
|
enum LoggerLevel {
|
|
Log = 0,
|
|
Info,
|
|
Warn,
|
|
Error
|
|
};
|
|
|
|
void init(std::string path);
|
|
|
|
std::ofstream ofs;
|
|
|
|
public:
|
|
Logger();
|
|
Logger(std::string path);
|
|
~Logger();
|
|
|
|
void log(std::string arg);
|
|
void log(int level, std::string arg);
|
|
};
|
|
}; // namespace fishbone
|
|
|
|
#endif
|