remove +x from source
[Tsunagari.git] / src / log.h
blob3244b9f3f7f13042d556fe25f109425c040caa43
1 /*********************************
2 ** Tsunagari Tile Engine **
3 ** log.h **
4 ** Copyright 2011-2012 OmegaSDG **
5 *********************************/
7 #ifndef LOG_H
8 #define LOG_H
10 #include <boost/utility.hpp> // for boost::noncopyable
11 #include <string>
13 enum verbosity_t {
14 V_QUIET, // Display fatals.
15 V_NORMAL, // Display fatals and errors. (This is the default.)
16 V_VERBOSE // Display fatals, errors and info.
19 class Log : boost::noncopyable
21 public:
22 static bool init();
24 static void setVerbosity(verbosity_t mode);
26 static void info(std::string domain, std::string msg);
27 static void err(std::string domain, std::string msg);
28 static void fatal(std::string domain, std::string msg);
30 private:
31 Log();
34 #endif