YARP
Yet Another Robot Platform
LogComponent.h
Go to the documentation of this file.
1
/*
2
* SPDX-FileCopyrightText: 2006-2021 Istituto Italiano di Tecnologia (IIT)
3
* SPDX-License-Identifier: BSD-3-Clause
4
*/
5
6
#ifndef YARP_SERVERSQL_IMPL_LOGCOMPONENT_H
7
#define YARP_SERVERSQL_IMPL_LOGCOMPONENT_H
8
9
#include <
yarp/os/api.h
>
10
#include <
yarp/os/LogComponent.h
>
11
12
namespace
yarp
{
13
namespace
serversql {
14
namespace
impl {
15
namespace
LogComponent {
16
17
void
print_callback
(
yarp::os::Log::LogType
type,
18
const
char
* msg,
19
const
char
* file,
20
const
unsigned
int
line,
21
const
char
* func,
22
double
systemtime,
23
double
networktime,
24
double
externaltime,
25
const
char
* comp_name);
26
27
void
setMinumumLogType
(
yarp::os::Log::LogType
minumumLogType);
28
29
}
// namespace LogComponent
30
}
// namespace impl
31
}
// namespace serversql
32
}
// namespace yarp
33
34
#define YARP_SERVERSQL_LOG_COMPONENT(name, name_string) \
35
const yarp::os::LogComponent& name() \
36
{ \
37
static const yarp::os::LogComponent component(name_string, \
38
yarp::os::Log::TraceType, \
39
yarp::os::Log::DebugType, \
40
yarp::serversql::impl::LogComponent::print_callback, \
41
yarp::os::Log::forwardCallback()); \
42
return component; \
43
}
44
45
#endif
// YARP_SERVERSQL_IMPL_LOGCOMPONENT_H
yarp::os::Log::LogType
LogType
Definition:
Log.h:72
LogComponent.h
yarp::serversql::impl::LogComponent::setMinumumLogType
void setMinumumLogType(yarp::os::Log::LogType minumumLogType)
Definition:
LogComponent.cpp:41
yarp::serversql::impl::LogComponent::print_callback
void print_callback(yarp::os::Log::LogType type, const char *msg, const char *file, const unsigned int line, const char *func, double systemtime, double networktime, double externaltime, const char *comp_name)
Definition:
LogComponent.cpp:16
yarp
The main, catch-all namespace for YARP.
Definition:
dirs.h:16
api.h
YARP
3.5.1
src
libYARP_serversql
src
yarp
serversql
impl
LogComponent.h
Generated on Sat Dec 25 2021 02:23:04 for YARP by
1.9.1