1 /*********************************
2 ** Tsunagari Tile Engine **
4 ** Copyright 2011-2012 OmegaSDG **
5 *********************************/
10 #include <boost/utility.hpp> // for boost::noncopyable
14 V_QUIET
= 1, //! Display fatals.
15 V_NORMAL
, //! Display fatals and errors.
16 V_VERBOSE
//! Display fatals, errors and info.
19 class Log
: boost::noncopyable
23 * Initialize the clock for log timestamps.
28 * Set the logging verbosity. Some log messages may be suppressed depending
31 static void setVerbosity(verbosity_t mode
);
34 * Log an info message to the console if verbosity is "V_VERBOSE".
36 static void info(std::string domain
, std::string msg
);
39 * Log an error message to the console if verbosity is "V_VERBOSE" or
42 static void err(std::string domain
, std::string msg
);
45 * Log a fatal error message to the console.
47 static void fatal(std::string domain
, std::string msg
);
50 * Used by main() to report the verbosity setting on engine startup.
52 static void reportVerbosityOnStartup();
59 * Exports Log hooks to the python interpreter.