Mercurial > hg > orthanc
comparison OrthancFramework/Sources/Logging.cpp @ 4294:0923247e69f6
log categories: rest -> http + added lua & jobs
author | Alain Mazy <alain@mazy.be> |
---|---|
date | Thu, 05 Nov 2020 11:43:32 +0100 |
parents | 29729b7eb6ab |
children | 548d77dfb8bc |
comparison
equal
deleted
inserted
replaced
4293:29729b7eb6ab | 4294:0923247e69f6 |
---|---|
204 else if (category == "plugins") | 204 else if (category == "plugins") |
205 { | 205 { |
206 target = LogCategory_PLUGINS; | 206 target = LogCategory_PLUGINS; |
207 return true; | 207 return true; |
208 } | 208 } |
209 else if (category == "rest") | 209 else if (category == "http") |
210 { | 210 { |
211 target = LogCategory_REST; | 211 target = LogCategory_HTTP; |
212 return true; | 212 return true; |
213 } | 213 } |
214 else if (category == "dicom") | 214 else if (category == "dicom") |
215 { | 215 { |
216 target = LogCategory_DICOM; | 216 target = LogCategory_DICOM; |
219 else if (category == "sqlite") | 219 else if (category == "sqlite") |
220 { | 220 { |
221 target = LogCategory_SQLITE; | 221 target = LogCategory_SQLITE; |
222 return true; | 222 return true; |
223 } | 223 } |
224 else if (category == "jobs") | |
225 { | |
226 target = LogCategory_JOBS; | |
227 return true; | |
228 } | |
229 else if (category == "lua") | |
230 { | |
231 target = LogCategory_LUA; | |
232 return true; | |
233 } | |
224 else | 234 else |
225 { | 235 { |
226 return false; | 236 return false; |
227 } | 237 } |
228 } | 238 } |
229 | 239 |
230 | 240 |
231 unsigned int GetCategoriesCount() | 241 unsigned int GetCategoriesCount() |
232 { | 242 { |
233 return 5; | 243 return 7; |
234 } | 244 } |
235 | 245 |
236 | 246 |
237 const char* GetCategoryName(unsigned int i) | 247 const char* GetCategoryName(unsigned int i) |
238 { | 248 { |
255 return "generic"; | 265 return "generic"; |
256 | 266 |
257 case LogCategory_PLUGINS: | 267 case LogCategory_PLUGINS: |
258 return "plugins"; | 268 return "plugins"; |
259 | 269 |
260 case LogCategory_REST: | 270 case LogCategory_HTTP: |
261 return "rest"; | 271 return "http"; |
262 | 272 |
263 case LogCategory_DICOM: | 273 case LogCategory_DICOM: |
264 return "dicom"; | 274 return "dicom"; |
265 | 275 |
266 case LogCategory_SQLITE: | 276 case LogCategory_SQLITE: |
267 return "sqlite"; | 277 return "sqlite"; |
278 | |
279 case LogCategory_JOBS: | |
280 return "jobs"; | |
281 | |
282 case LogCategory_LUA: | |
283 return "lua"; | |
268 | 284 |
269 default: | 285 default: |
270 throw OrthancException(ErrorCode_ParameterOutOfRange); | 286 throw OrthancException(ErrorCode_ParameterOutOfRange); |
271 } | 287 } |
272 } | 288 } |