RTI Connext DDS Micro
Version 2.4.11
Main Page
Related Pages
Manuals
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Groups
Pages
rt_log.h
Go to the documentation of this file.
1
/*
2
* FILE: rt_log.h - RT Log definitions
3
*
4
* Copyright 2012-2015 Real-Time Innovations, Inc.
5
*
6
* No duplications, whole or partial, manual or electronic, may be made
7
* without express written permission. Any such copies, or
8
* revisions thereof, must display this notice unaltered.
9
* This code contains trade secrets of Real-Time Innovations, Inc.
10
*
11
* Modification History
12
* --------------------
13
* 14oct2014,tk MICRO-943/PR#11893 Use correct ID for RT_Log_registry_inconsistent_cid
14
* 04sep2012,tk Written
15
*/
16
/*ce
17
* \file
18
* \defgroup RTLogCodesClass RT
19
* \brief RT. ModuleID = 3
20
* \ingroup LoggingModule
21
*/
22
#ifndef rt_log_h
23
#define rt_log_h
24
25
#ifndef osapi_log_h
26
#include "osapi/osapi_log.h"
27
#endif
28
29
/*ce
30
* \brief Failed to set registry property due to registry already being enabled
31
* \ingroup RTLogCodesClass
32
*/
33
#define RT_LOG_SET_IMMUTABLE_PROPERTY_EC (RT_LOG_BASE + 1)
34
#define RT_LOG_SET_IMMUTABLE_PROPERTY(level_) \
35
OSAPI_LOG_ENTRY_ADD((level_),RT_LOG_SET_IMMUTABLE_PROPERTY_EC,\
36
OSAPI_LOG_MSG_PN_X2_STD_PARAM)
37
38
/*ce
39
* \brief Failed to initialize registry due to failed table creation
40
* \ingroup RTLogCodesClass
41
*/
42
#define RT_LOG_REGISTRY_INIT_FAILURE_EC (RT_LOG_BASE + 2)
43
#define RT_LOG_REGISTRY_INIT_FAILURE(level_,dbrc_) \
44
OSAPI_LOG_ENTRY_ADD_1INT((level_),RT_LOG_REGISTRY_INIT_FAILURE_EC,\
45
OSAPI_LOG_MSG_PN_X2_STD_PARAM ,"dbrc",(dbrc_))
46
47
/*ce
48
* \brief Failed to finalize registry due to failed table deletion
49
* \ingroup RTLogCodesClass
50
*/
51
#define RT_LOG_REGISTRY_FINALIZE_EC (RT_LOG_BASE + 3)
52
#define RT_LOG_REGISTRY_FINALIZE(level_,dbrc_) \
53
OSAPI_LOG_ENTRY_ADD_1INT((level_),RT_LOG_REGISTRY_FINALIZE_EC,\
54
OSAPI_LOG_MSG_PN_X2_STD_PARAM ,"dbrc",(dbrc_))
55
56
/*ce
57
* \brief An attempt was made to register a factory that already existed
58
* \ingroup RTLogCodesClass
59
*/
60
#define RT_LOG_REGISTRY_EXISTS_EC (RT_LOG_BASE + 4)
61
#define RT_LOG_REGISTRY_EXISTS(level_,name_) \
62
OSAPI_LOG_ENTRY_ADD_1STRING((level_),RT_LOG_REGISTRY_EXISTS_EC,\
63
OSAPI_LOG_MSG_PN_X2_STD_PARAM ,"name",(name_))
64
65
/*ce
66
* \brief Error registering a component factory. May have exceeded
67
* RT_RegistryProperty.max_factories
68
* \ingroup RTLogCodesClass
69
*/
70
#define RT_LOG_REGISTRY_REGISTER_EC (RT_LOG_BASE + 5)
71
#define RT_LOG_REGISTRY_REGISTER(level_,dbrc_) \
72
OSAPI_LOG_ENTRY_ADD_1INT((level_),RT_LOG_REGISTRY_REGISTER_EC,\
73
OSAPI_LOG_MSG_PN_X2_STD_PARAM ,"dbrc",(dbrc_))
74
75
/*ce
76
* \brief A registered factory failed to initialize
77
* \ingroup RTLogCodesClass
78
*/
79
#define RT_LOG_REGISTRY_INIT_FACTORY_EC (RT_LOG_BASE + 7)
80
#define RT_LOG_REGISTRY_INIT_FACTORY(level_) \
81
OSAPI_LOG_ENTRY_ADD((level_),RT_LOG_REGISTRY_INIT_FACTORY_EC,\
82
OSAPI_LOG_MSG_PN_X2_STD_PARAM)
83
84
/*ce
85
* \brief Factory name longer than maximum length of 8
86
* \ingroup RTLogCodesClass
87
*/
88
#define RT_LOG_REGISTRY_NAME_TOO_LONG_EC (RT_LOG_BASE + 8)
89
#define RT_LOG_REGISTRY_NAME_TOO_LONG(level_,name_,len_) \
90
OSAPI_LOG_ENTRY_CREATE((level_),RT_LOG_REGISTRY_NAME_TOO_LONG_EC,\
91
OSAPI_LOG_MSG_PN_X2_STD_PARAM,RTI_FALSE)\
92
OSAPI_LOG_ENTRY_ADD_STRING("name",(name_),RTI_FALSE)\
93
OSAPI_LOG_ENTRY_ADD_INT("len",(len_),RTI_FALSE)\
94
OSAPI_LOG_ENTRY_ADD_INT("max",RT_MAX_FACTORY_NAME,RTI_TRUE)
95
96
/*ce
97
* \brief Factory name exists, but the class ID is not of the requested type
98
* \ingroup RTLogCodesClass
99
*/
100
#define RT_LOG_REGISTRY_INCONSISTENT_CID_EC (RT_LOG_BASE + 9)
101
#define RT_LOG_REGISTRY_INCONSISTENT_CID(level_,name_,req_cid_,real_cid_) \
102
OSAPI_LOG_ENTRY_CREATE((level_),RT_LOG_REGISTRY_INCONSISTENT_CID_EC,\
103
OSAPI_LOG_MSG_PN_X2_STD_PARAM,RTI_FALSE)\
104
OSAPI_LOG_ENTRY_ADD_STRING("name",(name_),RTI_FALSE)\
105
OSAPI_LOG_ENTRY_ADD_INT("r_cid",(req_cid_),RTI_FALSE)\
106
OSAPI_LOG_ENTRY_ADD_INT("a_cid",(real_cid_),RTI_TRUE)
107
108
/*ce
109
* \brief An attempt was made to operate on an uninitialized registry
110
* \ingroup RTLogCodesClass
111
*/
112
#define RT_LOG_REGISTRY_NOT_INITIALIZED_EC (RT_LOG_BASE + 10)
113
#define RT_LOG_REGISTRY_NOT_INITIALIZED(level_) \
114
OSAPI_LOG_ENTRY_ADD((level_),RT_LOG_REGISTRY_NOT_INITIALIZED_EC,\
115
OSAPI_LOG_MSG_PN_X2_STD_PARAM)
116
#endif
RTI Connext DDS Micro Version 2.4.11
Copyright © Mon Jul 23 2018
Real-Time Innovations, Inc