RTC Toolkit 6.0.0
Loading...
Searching...
No Matches
logger.hpp
Go to the documentation of this file.
1
11
12#ifndef RTCTK_COMPONENTFRAMEWORK_LOGGER_HPP
13#define RTCTK_COMPONENTFRAMEWORK_LOGGER_HPP
14
15#include <log4cplus/initializer.h>
16#include <log4cplus/logger.h>
17#include <log4cplus/loggingmacros.h>
18
20
28public:
29 LogInitializer() = default;
30
31private:
32 log4cplus::Initializer m_initializer;
33};
34
49void LogConfigure(const std::string& app_name, const std::string& props_file_name);
50
68void LogConfigure(const std::string& app_name,
69 log4cplus::LogLevel default_log_level = log4cplus::INFO_LOG_LEVEL);
70
88void LogConfigureTool(const std::string& app_name,
89 log4cplus::LogLevel default_log_level = log4cplus::ERROR_LOG_LEVEL,
90 bool log_to_file = false);
91
113log4cplus::Logger& GetLogger(const std::string& name = "app");
114
115} // namespace rtctk::componentFramework
116
117#endif // RTCTK_COMPONENTFRAMEWORK_LOGGER_HPP
log4cplus::Logger & GetLogger(const std::string &name="app")
Get handle to a specific logger.
Definition logger.cpp:191
void LogConfigureTool(const std::string &app_name, log4cplus::LogLevel default_log_level=log4cplus::ERROR_LOG_LEVEL, bool log_to_file=false)
Performs default logging configuration for Client Applications and Standalone Tools.
Definition logger.cpp:144
void LogConfigure(const std::string &app_name, const std::string &props_file_name)
Performs custom logging configuration for any application.
Definition logger.cpp:69
Definition commandReplier.cpp:21