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>
11
13
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
25void 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
void setMinumumLogType(yarp::os::Log::LogType minumumLogType)
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)