libqi-api  2.0.6.8
/home/opennao/work/master/sdk/libqi/qi/log/fileloghandler.hpp
Go to the documentation of this file.
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_FILELOGHANDLER_HPP_
00009 #define _QI_LOG_FILELOGHANDLER_HPP_
00010 
00011 # include <boost/noncopyable.hpp>
00012 # include <qi/log.hpp>
00013 
00014 namespace qi {
00015   namespace log {
00016     class PrivateFileLogHandler;
00017 
00019     class QI_API FileLogHandler : private boost::noncopyable
00020     {
00021     public:
00024       explicit FileLogHandler(const std::string& filePath);
00025 
00027       virtual ~FileLogHandler();
00028 
00030       void log(const qi::LogLevel verb,
00031                const qi::os::timeval   date,
00032                const char              *category,
00033                const char              *msg,
00034                const char              *file,
00035                const char              *fct,
00036                const int               line);
00037 
00038     private:
00039       PrivateFileLogHandler* _p;
00040     }; // !FileLogHandler
00041 
00042   }; // !log
00043 }; // !qi
00044 
00045 #endif  // _QI_LOG_FILELOGHANDLER_HPP_
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines