9typedef boost::shared_ptr<State> StateP;
15#define ECF_LOG(state, level, msg) \
16 ( ((state)->getLogger()->getLogLevel() >= (level)) ? (state)->getLogger()->log((level), (msg)) : (void) 0 )
22#define ECF_LOG_ERROR(state, msg) \
23 ( (state)->getLogger()->log(1, (msg)) )
46 void log(
int logLevel, std::string message);
52 void saveTo(std::string fileName);
58 void saveTo(
bool check =
false);
60 void saveToX(std::string fileName);
72 void registerParameters(StateP state);
85 {
return currentLevel_; }
88 std::vector<Log> logs_;
91 std::string logFileName_;
93 std::ofstream logFile_;
96typedef boost::shared_ptr<Logger> LoggerP;
Logging class - handles screen output and file logging.
void flushLog()
deletes current logs
void log(int logLevel, std::string message)
void saveTo(std::string fileName)
bool initialize(StateP state)
void setLogFrequency(uint freq)
State class - backbone of the framework.