RTC Toolkit
0.1.0-alpha
componentFramework
services
logging
src
include
rtctk
componentFramework
logger.hpp
Go to the documentation of this file.
1
9
#ifndef RTCTK_COMPONENTFRAMEWORK_LOGGER_HPP_
10
#define RTCTK_COMPONENTFRAMEWORK_LOGGER_HPP_
11
12
#include <log4cplus/logger.h>
13
#include <log4cplus/loggingmacros.h>
14
15
namespace
rtctk::componentFramework
{
16
20
class
LogInitializer
{
21
public
:
22
LogInitializer
();
23
~LogInitializer
();
24
};
25
34
void
LogConfigure
(
const
std::string& cfg_file_name =
""
);
35
44
void
MakeLogger
(
const
std::string& name, log4cplus::LogLevel ll,
bool
log_to_file=
true
,
bool
additive=
false
);
45
53
// Define which logger is retrieved when calling GetLogger() with any args
54
void
SetDefaultLogger
(
const
std::string& name);
55
65
log4cplus::Logger&
GetLogger
(
const
std::string& name =
""
);
66
67
}
68
69
#endif
rtctk::componentFramework::MakeLogger
void MakeLogger(const std::string &name, log4cplus::LogLevel ll, bool log_to_file=true, bool additive=false)
rtctk::componentFramework::LogConfigure
void LogConfigure(const std::string &cfg_file_name="")
rtctk::componentFramework
Definition:
rtcComponent.hpp:17
rtctk::componentFramework::LogInitializer::LogInitializer
LogInitializer()
Definition:
logger.cpp:22
rtctk::componentFramework::LogInitializer
Definition:
logger.hpp:20
rtctk::componentFramework::GetLogger
log4cplus::Logger & GetLogger(const std::string &name="")
rtctk::componentFramework::LogInitializer::~LogInitializer
~LogInitializer()
Definition:
logger.cpp:27
rtctk::componentFramework::SetDefaultLogger
void SetDefaultLogger(const std::string &name)
Definition:
logger.cpp:32
Generated by
1.8.20