libqi-api  2.8.7.4
 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 {
37 }; // !log
38 }; // !qi
39 
40 #endif
41 
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.
Handler makeJournaldLogHandler()
Return a log handler, which forwards logs to systemd's journal.
boost::function8< void, const qi::LogLevel, const qi::Clock::time_point, const qi::SystemClock::time_point, const char *, const char *, const char *, const char *, int > Handler
Boost delegate to log function (verbosity lv, dates of log, category, message, file, function, line).
Definition: log.hpp:243
Convenient log macro.