4 The final behaviour of macros can be tuned using 2 defines that must be defined
5 before including **<afb/afb-binding.h>**.
8 |---------------------------------------|--------------------
9 | AFB_BINDING_PRAGMA_NO_VERBOSE_DATA | show file and line, remove function and text message
10 | AFB_BINDING_PRAGMA_NO_VERBOSE_DETAILS | show text, remove function, line and file
14 The following macros must be used for logging for an **api** of type
18 AFB_API_ERROR(api,fmt,...)
19 AFB_API_WARNING(api,fmt,...)
20 AFB_API_NOTICE(api,fmt,...)
21 AFB_API_INFO(api,fmt,...)
22 AFB_API_DEBUG(api,fmt,...)
25 ## Logging for a request
28 The following macros can be used for logging in the context
29 of a request **req** of type **afb_req_t**:
32 AFB_REQ_ERROR(req,fmt,...)
33 AFB_REQ_WARNING(req,fmt,...)
34 AFB_REQ_NOTICE(req,fmt,...)
35 AFB_REQ_INFO(req,fmt,...)
36 AFB_REQ_DEBUG(req,fmt,...)
39 By default, the logging macros add file, line and function
44 The following macros are provided for legacy.