libqi-api  release-2.5.3-2016-11-18
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
journaldloghandler.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_JOURNALDLOGHANDLER_HPP_
9 #define _QI_LOG_JOURNALDLOGHANDLER_HPP_
10 
11 #include <boost/noncopyable.hpp>
12 #include <boost/scoped_ptr.hpp>
13 #include <qi/log.hpp>
14 
15 namespace qi
16 {
17 namespace log
18 {
24  class QI_API JournaldLogHandler: private boost::noncopyable
25  {
26  public:
37  void log(const qi::LogLevel verb,
38  const char* category,
39  const char* msg,
40  const char* file,
41  const char* fct,
42  const int line);
43  };
44 }; // !log
45 }; // !qi
46 
47 #endif
48 
#define QI_API
Definition: api.hpp:33
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.
Convenient log macro.