libqi  1.14.5
qi/log/fileloghandler.hpp
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_FILELOGHANDLER_HPP_
00009 #define _LIBQI_QI_LOG_FILELOGHANDLER_HPP_
00010 
00011 # include <qi/log.hpp>
00012 # include <string>
00013 
00014 namespace qi {
00015   namespace log {
00016     class PrivateFileLogHandler;
00017 
00021     class QI_API FileLogHandler
00022     {
00023     public:
00024       explicit FileLogHandler(const std::string& filePath);
00025       virtual ~FileLogHandler();
00026 
00027       void log(const qi::log::LogLevel verb,
00028                const qi::os::timeval   date,
00029                const char              *category,
00030                const char              *msg,
00031                const char              *file,
00032                const char              *fct,
00033                const int               line);
00034 
00035     private:
00036       QI_DISALLOW_COPY_AND_ASSIGN(FileLogHandler);
00037       PrivateFileLogHandler* _private;
00038     }; // !FileLogHandler
00039 
00040   }; // !log
00041 }; // !qi
00042 
00043 #endif  // _LIBQI_QI_LOG_FILELOGHANDLER_HPP_
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines