libqi  1.14
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
consoleloghandler.hpp
1 /*
2  * Copyright (c) 2012 Aldebaran Robotics. All rights reserved.
3  * Use of this source code is governed by a BSD-style license that can be
4  * found in the COPYING file.
5  */
6 
7 
8 #pragma once
9 #ifndef _LIBQI_QI_LOG_CONSOLELOGHANDLER_HPP_
10 #define _LIBQI_QI_LOG_CONSOLELOGHANDLER_HPP_
11 
12 # include <cstdarg>
13 # include <qi/log.hpp>
14 
15 namespace qi {
16  namespace log {
17 
18  class PrivateConsoleLogHandler;
19 
24  class QI_API ConsoleLogHandler
25  {
26  public:
28 
29  void log(const qi::log::LogLevel verb,
30  const qi::os::timeval date,
31  const char *category,
32  const char *msg,
33  const char *file,
34  const char *fct,
35  const int line);
36 
37 
38  protected:
40  PrivateConsoleLogHandler* _private;
41  };
42  }
43 }
44 
45 
46 #endif // _LIBQI_QI_LOG_CONSOLELOGHANDLER_HPP_