libqi-api  release-2.5.3-2016-11-18
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
androidloghandler.hpp
Go to the documentation of this file.
1 #pragma once
2 /*
3  * Copyright (c) 2016 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_ANDROIDLOGHANDLER_HPP_
9 #define _QI_LOG_ANDROIDLOGHANDLER_HPP_
10 
11 #include <qi/log.hpp>
12 
13 namespace qi
14 {
15 namespace log
16 {
25  {
26  public:
28 
29  AndroidLogHandler(const AndroidLogHandler&) = delete;
31 
43  void log(qi::LogLevel verb,
45  qi::SystemClock::time_point systemDate,
46  const char* category,
47  const char* msg,
48  const char* file,
49  const char* fct,
50  int line);
51  };
52 
53 } // namespace log
54 } // namespace qi
55 
56 #endif // _QI_LOG_ANDROIDLOGHANDLER_HPP_
LogLevel
Log level verbosity.
Definition: log.hpp:132
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.
void log(qi::LogLevel verb, qi::Clock::time_point date, qi::SystemClock::time_point systemDate, const char *category, const char *msg, const char *file, const char *fct, int line)
Prints a log message on the console.
The AndroidLogHandler class.
boost::chrono::time_point< Clock > time_point
Definition: clock.hpp:96
Convenient log macro.
boost::chrono::time_point< SystemClock > time_point
Definition: clock.hpp:178
AndroidLogHandler & operator=(const AndroidLogHandler &)=delete