YARP
Yet Another Robot Platform
Loading...
Searching...
No Matches
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::serversql::impl::LogComponent
{
13
14
void
print_callback
(
yarp::os::Log::LogType
type,
15
const
char
* msg,
16
const
char
* file,
17
const
unsigned
int
line,
18
const
char
* func,
19
double
systemtime,
20
double
networktime,
21
double
externaltime,
22
const
char
* comp_name,
23
const
char
*
id
);
24
25
void
setMinumumLogType
(
yarp::os::Log::LogType
minumumLogType);
26
27
}
// namespace yarp::serversql::impl::LogComponent
28
29
#define YARP_SERVERSQL_LOG_COMPONENT(name, name_string) \
30
const yarp::os::LogComponent& name() \
31
{ \
32
static const yarp::os::LogComponent component(name_string, \
33
yarp::os::Log::TraceType, \
34
yarp::os::Log::DebugType, \
35
yarp::serversql::impl::LogComponent::print_callback, \
36
yarp::os::Log::forwardCallback()); \
37
return component; \
38
}
39
40
#endif
// YARP_SERVERSQL_IMPL_LOGCOMPONENT_H
yarp::os::Log::LogType
LogType
Definition
Log.h:90
LogComponent.h
yarp::serversql::impl::LogComponent
Definition
LogComponent.h:12
yarp::serversql::impl::LogComponent::setMinumumLogType
void setMinumumLogType(yarp::os::Log::LogType minumumLogType)
Definition
LogComponent.cpp:42
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, const char *id)
Definition
LogComponent.cpp:16
api.h
YARP
3.9.0+216-20240913.4+git627c4e30d
src
libYARP_serversql
src
yarp
serversql
impl
LogComponent.h
Generated on Sat Sep 14 2024 02:26:31 for YARP by
1.9.8