15 #include <boost/thread/mutex.hpp>
22 static std::ostream& stream()
28 static void setOutput(
const std::string &filename);
29 static void setOutput(std::ostream *stream);
31 static std::string breakLines(
const std::string &s);
33 static void log(
const char* file,
36 const std::string &s);
39 typedef enum { NEVER = 0, FATAL, ERROR, WARN, INFO,
40 LOG, DEBUG, UNKNOWN } Type;
41 static const Type defaultType = LOG;
42 static const std::string TypeNames[];
45 static boost::mutex mutex_;
47 static std::string msgColor;
48 static std::string errorColor;
49 static std::string nocolor;
51 static std::ostream *out;
52 static std::ostream *outInstance;