Aldebaran documentation
|
C++ Libraries
|
index
libqicore-api
2.4.3.28
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
libqicore
qicore
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
QI_TYPE_ENUM_REGISTER(ProgressNotifier::Status)
qi::LogMessage::category
std::string category
Definition:
logmessage.hpp:24
qi::LogMessage
Definition:
logmessage.hpp:19
QI_TYPE_STRUCT
QI_TYPE_STRUCT(::qi::LogMessage, source, level, timestamp, category, location, message, id)
qi::LogMessage::id
unsigned int id
Definition:
logmessage.hpp:27
qi::LogMessage::location
std::string location
Definition:
logmessage.hpp:25
qi::LogMessage::source
std::string source
Definition:
logmessage.hpp:21
qi::LogMessage::level
qi::LogLevel level
Definition:
logmessage.hpp:22
qi::LogMessage::timestamp
qi::os::timeval timestamp
Definition:
logmessage.hpp:23
qi::LogMessage::message
std::string message
Definition:
logmessage.hpp:26
Copyright Aldebaran Robotics