wip
This commit is contained in:
parent
15e2abbada
commit
03b8658666
18 changed files with 257 additions and 57 deletions
35
engine/include/fishbone/log.h
Normal file
35
engine/include/fishbone/log.h
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
#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
|
||||
Loading…
Add table
Add a link
Reference in a new issue