UDF Log API Overview

flow_func_log.h provides log APIs to facilitate log recording during FlowFunc development. The log scenarios are as follows.

Table 1 Log types

Log Type

Application Scenario

Log Level

Log Macro

Run log

Run logs record abnormal status and operations, key events, and resource usage during system running.

ERROR

Error-Level Log Macro of Run Logs

INFO

Info-Level Log Macro of Run Logs

Debug log

Debug logs record the following scenarios (including but not limited to these scenarios):

- Entrance and exit of all calls such as API and function calls

- Operation entrance and prerequisite setting

- Start or timeout of a timer

- Before and after status setting and status transfer condition judgment

- Business-related resource statistics, business processing entrance/exit, and performance computing statistics

- All processing failures and exceptions

Debug logs record code-related information for R&D engineers to locate faults.

ERROR

Error-Level Log Macro of Debug Logs

WARN

Warn-Level Log Macro of Debug Logs

INFO

Info-Level Log Macro of Debug Logs

DEBUG

Debug-Level Log Macro of Debug Logs