-
Notifications
You must be signed in to change notification settings - Fork 269
Expand file tree
/
Copy pathtraceLevels.h
More file actions
149 lines (127 loc) · 3.39 KB
/
Copy pathtraceLevels.h
File metadata and controls
149 lines (127 loc) · 3.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
#ifndef SRC_LIB_LOGMSG_TRACELEVELS_H_
#define SRC_LIB_LOGMSG_TRACELEVELS_H_
/*
*
* Copyright 2013 Telefonica Investigacion y Desarrollo, S.A.U
*
* This file is part of Orion Context Broker.
*
* Orion Context Broker is free software: you can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* Orion Context Broker is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
* General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with Orion Context Broker. If not, see http://www.gnu.org/licenses/.
*
* For those usages not covered by this license please contact with
* iot_support at tid dot es
*
* Author: Ken Zangelin
*/
/* ****************************************************************************
*
* TraceLevels -
*/
typedef enum TraceLevels
{
/* The "tracelevels" group are largely based on the different processing levels used
* at Context Broker */
/* Rest (20-39) */
LmtRest = 20,
LmtRestCompare,
LmtUrlParse,
LmtHttpRequest,
LmtHttpHeaders,
LmtHttpDaemon = 25,
LmtHttpUnsupportedHeader,
LmtMhd,
LmtSavedResponse,
LmtIncompletePayload,
LmtTenant = 30,
LmtUriParams,
LmtServicePath,
LmtPagination,
LmtCoap,
LmtHttps = 35,
LmtIpVersion,
LmtCtxProviders,
LmtRequest = 38, // ONLY to be used in ONE place - incoming requests
LmtPayload,
/* Parser (40-59) */
LmtParse = 40,
LmtParsedPayload,
LmtParseCheck,
LmtNew,
LmtTreat,
LmtDump = 45,
LmtNullNode,
LmtCompoundValue,
LmtCompoundValueAdd,
LmtCompoundValueLookup,
LmtCompoundValueRender = 50,
LmtCompoundValueRaw,
LmtCompoundValueContainer,
LmtCompoundValueStep,
LmtCompoundValueShow,
LmtJsonAttributes = 55,
LmtRegexError,
/* RestService and Service (60-79) */
LmtService = 60,
LmtConvenience,
/* ConvenienceMap (80-99) */
LmtClone = 80,
/* MongoBackend (100-119) */
LmtMongo = 100,
/* Cleanup (120-139) */
LmtDestructor = 120,
LmtRelease,
/* Types (140-159) */
LmtEntityId = 140,
LmtRestriction,
LmtScope,
/* Notifications (160-179) */
LmtNotifier = 160,
LmtNotificationRequestPayload,
LmtNotificationResponsePayload,
LmtMqttNotif,
LmtNotifierQueue,
/* Input/Output payloads (180-199) */
LmtServiceInputPayload = 180,
LmtServiceOutPayload,
LmtClientInputPayload,
LmtClientOutputPayload = 183, // Very important for harness test notification_different_sizes
LmtPartialPayload,
LmtClientOutputPayloadDump,
LmtCPrForwardRequestPayload,
LmtCPrForwardResponsePayload,
/* Semaphores (200-204) */
LmtReqSem = 200,
LmtMongoSem,
LmtTransSem,
LmtCacheSem,
LmtTimeStatSem,
/* Cache (210 - 230) */
LmtSubCache = 210,
LmtSubCacheMatch,
LmtCacheSync,
/* Others (>=230) */
LmtCm = 230,
LmtSoftError,
LmtNotImplemented,
LmtCurlContext,
LmtThreadpool,
LmtOldInfo = 240, // old INFO traces moved to DEBUG in Orion 2.5.0
LmtBug = 250
} TraceLevels;
/* ****************************************************************************
*
* traceLevelName -
*/
extern char* traceLevelName(TraceLevels level);
#endif // SRC_LIB_LOGMSG_TRACELEVELS_H_