libqicore-api  2.4.3.28
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
logmessage.hpp
Go to the documentation of this file.
1 /*
2 ** Author(s):
3 ** - Herve Cuche <hcuche@aldebaran-robotics.com>
4 ** - Matthieu Nottale <mnottale@aldebaran-robotics.com>
5 **
6 ** Copyright (C) 2013 Aldebaran Robotics
7 */
8 
9 #ifndef QICORE_LOG_HPP_
10 #define QICORE_LOG_HPP_
11 
12 #include <qi/log.hpp>
13 #include <qi/anyobject.hpp>
14 
15 QI_TYPE_ENUM_REGISTER(qi::LogLevel)
16 
17 namespace qi
18 {
19 struct LogMessage
20 {
21  std::string source; // File:function:line
22  qi::LogLevel level; // Level of verbosity of the message
23  qi::os::timeval timestamp; // timestamp when the message have been posted
24  std::string category; // Category of the message
25  std::string location; // machineID:PID
26  std::string message; // The message itself
27  unsigned int id; // Unique message ID
28 };
29 }
30 QI_TYPE_STRUCT(::qi::LogMessage, source, level, timestamp, category, location, message, id);
31 
32 #endif // !QICORE_LOG_HPP_
QI_TYPE_ENUM_REGISTER(ProgressNotifier::Status)
std::string category
Definition: logmessage.hpp:24
QI_TYPE_STRUCT(::qi::LogMessage, source, level, timestamp, category, location, message, id)
unsigned int id
Definition: logmessage.hpp:27
std::string location
Definition: logmessage.hpp:25
std::string source
Definition: logmessage.hpp:21
qi::LogLevel level
Definition: logmessage.hpp:22
qi::os::timeval timestamp
Definition: logmessage.hpp:23
std::string message
Definition: logmessage.hpp:26