10 #include <AtomsUtils/Globals.h>
13 #include <AtomsUtils/AtomsMath.h>
46 virtual void info(
const std::string &msg);
49 virtual void warning(
const std::string &msg);
52 virtual void error(
const std::string &msg);
55 virtual void cmd(
const std::string &msg);
74 LogProxy& operator<<(
const std::string& value);
75 LogProxy& operator<<(
const char* value);
76 LogProxy& operator<<(
const double value);
77 LogProxy& operator<<(
const int value);
78 LogProxy& operator<<(
const unsigned int value);
80 LogProxy& operator<<(
const size_t value);
82 LogProxy& operator<<(
const bool value);
84 LogProxy& operator<<(
const float value);
85 LogProxy& operator<<(
const short value);
86 LogProxy& operator<<(
const unsigned short value);
87 LogProxy& operator<<(
const long value);
89 LogProxy& operator<<(
const AtomsMath::Vector2& value);
90 LogProxy& operator<<(
const AtomsMath::Vector2f& value);
91 LogProxy& operator<<(
const AtomsMath::Vector3& value);
92 LogProxy& operator<<(
const AtomsMath::Vector3f& value);
93 LogProxy& operator<<(
const AtomsMath::Vector4& value);
94 LogProxy& operator<<(
const AtomsMath::Vector4f& value);
95 LogProxy& operator<<(
const AtomsMath::Matrix& value);
96 LogProxy& operator<<(
const AtomsMath::Matrixf& value);
97 LogProxy& operator<<(
const AtomsMath::Quaternion& value);
98 LogProxy& operator<<(
const AtomsMath::Quaternionf& value);
99 LogProxy& operator<<(
const AtomsMath::Euler& value);
100 LogProxy& operator<<(
const AtomsMath::Eulerf& value);
107 m_msg << value <<
" ";
115 std::stringstream m_msg;
172 std::shared_ptr<LogType> m_logType;
179 m_msg <<
"( "<< value[0][0] <<
", " << value[0][1] <<
", " << value[0][2] <<
", " << value[0][3] <<
", ";
180 m_msg << value[1][0] <<
", " << value[1][1] <<
", " << value[1][2] <<
", " << value[1][3] <<
", ";
181 m_msg << value[2][0] <<
", " << value[2][1] <<
", " << value[2][2] <<
", " << value[2][3] <<
", ";
182 m_msg << value[3][0] <<
", " << value[3][1] <<
", " << value[3][2] <<
", " << value[3][3] <<
" ) ";
189 m_msg <<
"( " << value[0][0] <<
", " << value[0][1] <<
", " << value[0][2] <<
", " << value[0][3] <<
", ";
190 m_msg << value[1][0] <<
", " << value[1][1] <<
", " << value[1][2] <<
", " << value[1][3] <<
", ";
191 m_msg << value[2][0] <<
", " << value[2][1] <<
", " << value[2][2] <<
", " << value[2][3] <<
", ";
192 m_msg << value[3][0] <<
", " << value[3][1] <<
", " << value[3][2] <<
", " << value[3][3] <<
" ) ";
Logger proxy class.
Definition: Logger.h:61
LogProxy(LogType *l, LogType::MessageType mType)
Constructor.
LogProxy(const LogProxy &other)
Copy constructor.
LogProxy & operator<<(const T &value)
output function
Definition: Logger.h:105
Log type class.
Definition: Logger.h:25
virtual void info(const std::string &msg)
Info log function.
void flushMessage(MessageType mType, const std::string &msg)
flush message
virtual void warning(const std::string &msg)
Warning log message.
virtual void cmd(const std::string &msg)
Cmd log message.
virtual ~LogType()
Destructor.
MessageType
Message type.
Definition: Logger.h:29
virtual void error(const std::string &msg)
Error log message.
Logger class.
Definition: Logger.h:126
static Logger & instance()
Singleton access.
static LogProxy log(LogType::MessageType mType)
Get logger proxy.
static LogProxy cmd()
Get logger proxy error.
static LogProxy warning()
Get logger proxy warning.
static LogProxy error()
Get logger proxy error.
LogType * logType()
Get logger type.
static LogProxy info()
Get logger proxy info.
void setLogType(LogType *logType)
Set logger type.
AtomsCore namespace.
Definition: Base64.h:13