libqi-api
2.0.6.8
|
00001 #pragma once 00002 /* 00003 * Copyright (c) 2012 Aldebaran Robotics. All rights reserved. 00004 * Use of this source code is governed by a BSD-style license that can be 00005 * found in the COPYING file. 00006 */ 00007 00008 #ifndef _QI_LOG_TAILFILELOGHANDLER_HPP_ 00009 #define _QI_LOG_TAILFILELOGHANDLER_HPP_ 00010 00011 # include <boost/noncopyable.hpp> 00012 # include <qi/log.hpp> 00013 # include <string> 00014 00015 namespace qi { 00016 namespace log { 00017 class PrivateTailFileLogHandler; 00018 00020 class QI_API TailFileLogHandler : private boost::noncopyable 00021 { 00022 public: 00024 TailFileLogHandler(const std::string &filePath); 00026 virtual ~TailFileLogHandler(); 00027 00029 void log(const qi::LogLevel verb, 00030 const qi::os::timeval date, 00031 const char *category, 00032 const char *msg, 00033 const char *file, 00034 const char *fct, 00035 const int line); 00036 00037 private: 00038 PrivateTailFileLogHandler* _p; 00039 }; // !TailFileLogHandler 00040 00041 }; // !log 00042 }; // !qi 00043 00044 #endif // _QI_LOG_TAILFILELOGHANDLER_HPP_