RTC Toolkit
1.0.0
Main Page
Related Pages
Modules
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
~
Functions
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
w
~
Variables
a
c
d
e
f
h
i
l
m
n
o
p
r
s
t
v
w
Typedefs
a
c
d
f
l
m
o
p
r
s
t
Enumerations
Enumerator
Related Functions
Files
File List
File Members
All
a
b
c
d
e
f
g
i
l
m
o
p
r
s
t
u
v
w
Functions
b
c
d
e
f
g
l
m
o
p
r
s
t
w
Variables
Typedefs
Enumerations
Enumerator
Macros
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
componentFramework
services
logging
src
include
rtctk
componentFramework
logger.hpp
Go to the documentation of this file.
1
12
#ifndef RTCTK_COMPONENTFRAMEWORK_LOGGER_HPP_
13
#define RTCTK_COMPONENTFRAMEWORK_LOGGER_HPP_
14
15
#include <log4cplus/logger.h>
16
#include <log4cplus/loggingmacros.h>
17
18
namespace
rtctk::componentFramework
{
19
23
class
LogInitializer
{
24
public
:
25
LogInitializer
();
26
~LogInitializer
();
27
};
28
37
void
LogConfigure
(
const
std::string& cfg_file_name =
""
);
38
47
void
MakeLogger
(
const
std::string&
name
,
48
log4cplus::LogLevel ll,
49
bool
log_to_file =
true
,
50
bool
additive =
false
);
51
59
// Define which logger is retrieved when calling GetLogger() with any args
60
void
SetDefaultLogger
(
const
std::string&
name
);
61
71
log4cplus::Logger&
GetLogger
(
const
std::string&
name
=
""
);
72
73
}
// namespace rtctk::componentFramework
74
75
#endif
wscript.name
name
Definition:
wscript:15
rtctk::componentFramework::MakeLogger
void MakeLogger(const std::string &name, log4cplus::LogLevel ll, bool log_to_file=true, bool additive=false)
Retrieve new logger programmatically.
rtctk::componentFramework::LogConfigure
void LogConfigure(const std::string &cfg_file_name="")
Initial logging system configuration.
rtctk::componentFramework
Definition:
commandReplier.cpp:20
rtctk::componentFramework::LogInitializer::LogInitializer
LogInitializer()
Definition:
logger.cpp:44
rtctk::componentFramework::LogInitializer
RAII class to clean-up logging without leaking memory.
Definition:
logger.hpp:23
rtctk::componentFramework::GetLogger
log4cplus::Logger & GetLogger(const std::string &name="")
Get handle to a specific logger (used with logging macros)
rtctk::componentFramework::LogInitializer::~LogInitializer
~LogInitializer()
Definition:
logger.cpp:58
rtctk::componentFramework::SetDefaultLogger
void SetDefaultLogger(const std::string &name)
Set the default logger.
Definition:
logger.cpp:62
Generated by
1.8.20