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