Go to the documentation of this file.
18 #ifndef _GAZEBO_CONSOLE_HH_
19 #define _GAZEBO_CONSOLE_HH_
26 #include <boost/thread.hpp>
38 #define gzmsg (gazebo::common::Console::msg())
41 #define gzdbg (gazebo::common::Console::dbg(__FILE__, __LINE__))
44 #define gzwarn (gazebo::common::Console::warn(__FILE__, __LINE__))
47 #define gzerr (gazebo::common::Console::err(__FILE__, __LINE__))
50 #define gzlog (gazebo::common::Console::log())
56 #define gzLogInit(_str) (gazebo::common::Console::log.Init(_str))
65 public:
FileLogger(
const std::string &_filename =
"");
73 public:
void Init(
const std::string &_filename);
86 const std::string &_file,
int _line);
89 protected:
class Buffer :
public std::stringbuf
93 public:
Buffer(
const std::string &_filename);
101 public:
virtual int sync();
126 public:
Logger(
const std::string &_prefix,
int _color, LogType _type);
129 public:
virtual ~
Logger();
133 public:
virtual Logger &operator()();
140 public:
virtual Logger &operator()(
141 const std::string &_file,
int _line);
144 protected:
class Buffer :
public std::stringbuf
153 public:
virtual ~
Buffer();
158 public:
virtual int sync();
173 private: std::string prefix;
183 public:
static void SetQuiet(
bool _q);
187 public:
static bool GetQuiet();
205 private:
static bool quiet;