- Aldebaran documentation |
- C++ Libraries |
- index

libqi-api 2.8.7.4

- Main Page
- Related Pages
- Namespaces
- Classes
- Files
- Examples

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
consoleloghandler.hpp
Go to the documentation of this file.
1 #pragma once
2 /*
3 * Copyright (c) 2012 Aldebaran Robotics. All rights reserved.
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the COPYING file.
6 */
7
8 #ifndef _QI_LOG_CONSOLELOGHANDLER_HPP_
9 #define _QI_LOG_CONSOLELOGHANDLER_HPP_
10
11 #include <boost/noncopyable.hpp>
12 #include <qi/log.hpp>
13
14 namespace qi
15 {
16 namespace log
17 {
18 class PrivateConsoleLogHandler;
19
26 class QI_API ConsoleLogHandler : private boost::noncopyable
27 {
28 public:
31 ConsoleLogHandler();
32
35 ~ConsoleLogHandler();
36
48 void log(const qi::LogLevel verb,
49 const qi::Clock::time_point date,
50 const qi::SystemClock::time_point systemDate,
51 const char* category,
52 const char* msg,
53 const char* file,
54 const char* fct,
55 const int line);
56
60 void updateColor();
61
62 protected:
63 PrivateConsoleLogHandler* _p;
64 };
65 }
66 }
67
68 #endif // _QI_LOG_CONSOLELOGHANDLER_HPP_
QI_API
#define QI_API
Definition: api.hpp:33
qi::LogLevel
LogLevel
Log level verbosity.
Definition: log.hpp:140
qi::log::ConsoleLogHandler::_p
PrivateConsoleLogHandler * _p
Definition: consoleloghandler.hpp:63
qi::log::log
void log(const qi::LogLevel verb, const char *category, const char *msg, const char *file="", const char *fct="", const int line=0)
Log function. You should call qiLog* macros instead.
qi::log::ConsoleLogHandler
Print colored logs to the console.
Definition: consoleloghandler.hpp:26
qi::Clock::time_point
boost::chrono::time_point< Clock > time_point
Definition: clock.hpp:96
log.hpp
Convenient log macro.
qi::SystemClock::time_point
boost::chrono::time_point< SystemClock > time_point
Definition: clock.hpp:178