- 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
tailfileloghandler.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_TAILFILELOGHANDLER_HPP_
9 #define _QI_LOG_TAILFILELOGHANDLER_HPP_
10
11 #include <boost/noncopyable.hpp>
12 #include <qi/log.hpp>
13 #include <string>
14
15 namespace qi
16 {
17 namespace log
18 {
19 struct PrivateTailFileLogHandler;
20
32 class QI_API TailFileLogHandler : private boost::noncopyable
33 {
34 public:
46 TailFileLogHandler(const std::string& filePath);
47
51 virtual ~TailFileLogHandler();
52
68 void log(const qi::LogLevel verb,
69 const qi::Clock::time_point date,
70 const qi::SystemClock::time_point systemDate,
71 const char* category,
72 const char* msg,
73 const char* file,
74 const char* fct,
75 const int line);
76
77 private:
78 PrivateTailFileLogHandler* _p;
79 }; // !TailFileLogHandler
80
81 }; // !log
82 }; // !qi
83
84 #endif // _QI_LOG_TAILFILELOGHANDLER_HPP_
QI_API
#define QI_API
Definition: api.hpp:33
qi::LogLevel
LogLevel
Log level verbosity.
Definition: log.hpp:140
qi::log::TailFileLogHandler
Keeps at most 2 MiB of logs. <includename>qi/log/tailfileloghandler.hpp</includename> ...
Definition: tailfileloghandler.hpp:32
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::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