Logger.h
Go to the documentation of this file.
00001 
00006 #ifndef LOGGER_H_
00007 #define LOGGER_H_
00008 
00009 #include <ros/package.h>
00010 #include <log4cpp/PropertyConfigurator.hh>
00011 #include <log4cpp/Category.hh>
00012 #include <log4cpp/Appender.hh>
00013 #include <log4cpp/OstreamAppender.hh>
00014 
00015 namespace NasaCommonLogging
00016 {
00017     class Logger
00018     {
00019     public:
00020         Logger();
00021         virtual ~Logger();
00022 
00023         static void log(const std::string& category, log4cpp::Priority::Value priority, const std::string& message);
00024         static log4cpp::Category& getCategory(const std::string& category);
00025     private:
00026         std::string propertyFile;
00027         std::string packagePath;
00028     };
00029 }
00030 
00031 #endif /* LOGGER_H_ */


nasa_common_logging
Author(s):
autogenerated on Sun Feb 3 2019 03:42:09