libqi  1.14.5
qi/log/consoleloghandler.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 
00008 #pragma once
00009 #ifndef _LIBQI_QI_LOG_CONSOLELOGHANDLER_HPP_
00010 #define _LIBQI_QI_LOG_CONSOLELOGHANDLER_HPP_
00011 
00012 # include <cstdarg>
00013 # include <qi/log.hpp>
00014 
00015 namespace qi {
00016   namespace log {
00017 
00018     class PrivateConsoleLogHandler;
00019 
00024     class QI_API ConsoleLogHandler
00025     {
00026     public:
00027       ConsoleLogHandler();
00028 
00029       void log(const qi::log::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 
00038     protected:
00039       QI_DISALLOW_COPY_AND_ASSIGN(ConsoleLogHandler);
00040       PrivateConsoleLogHandler* _private;
00041     };
00042   }
00043 }
00044 
00045 
00046 #endif  // _LIBQI_QI_LOG_CONSOLELOGHANDLER_HPP_
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines