#ifndef DGRID_LOGGER_H #define DGRID_LOGGER_H #include #include namespace DGrid { /* // значения уровней из syslog LOG_EMERG = 0, // system is unusable LOG_ALERT = 1, // action must be taken immediately LOG_CRIT = 2, // critical conditions LOG_ERR = 3, // error conditions LOG_WARNING = 4, // warning conditions LOG_NOTICE = 5, // normal but significant condition LOG_INFO = 6, // informational LOG_DEBUG = 7 // debug-level messages */ bool setLogFile(const std::string fname = ""); void setForcedLogFlush(bool f); void setSysLog(std::string ident); void setLogLevel(int severity); void writeLog(int severity, const char* format, ...); void restartLogger(); } // namespace DGrid #endif // DGRID_LOGGER_H