3 title: Macros for logging
5 https://git.automotivelinux.org/src/app-framework-binder/plain/docs/reference-v3/macro-log.md?h=master
8 <!-- WARNING: This file is generated by fetch_docs.js using /home/boron/Documents/AGL/docs-webtemplate/site/_data/tocs/apis_services/master/app-framework-binder-developer-guides-api-services-book.yml -->
13 The final behaviour of macros can be tuned using 2 defines that must be defined
14 before including **<afb/afb-binding.h>**.
17 |---------------------------------------|--------------------
18 | AFB_BINDING_PRAGMA_NO_VERBOSE_DATA | show file and line, remove function and text message
19 | AFB_BINDING_PRAGMA_NO_VERBOSE_DETAILS | show text, remove function, line and file
23 The following macros must be used for logging for an **api** of type
27 AFB_API_ERROR(api,fmt,...)
28 AFB_API_WARNING(api,fmt,...)
29 AFB_API_NOTICE(api,fmt,...)
30 AFB_API_INFO(api,fmt,...)
31 AFB_API_DEBUG(api,fmt,...)
34 ## Logging for a request
37 The following macros can be used for logging in the context
38 of a request **req** of type **afb_req_t**:
41 AFB_REQ_ERROR(req,fmt,...)
42 AFB_REQ_WARNING(req,fmt,...)
43 AFB_REQ_NOTICE(req,fmt,...)
44 AFB_REQ_INFO(req,fmt,...)
45 AFB_REQ_DEBUG(req,fmt,...)
48 By default, the logging macros add file, line and function
53 The following macros are provided for legacy.