Skip to main content

tkl_output | Log Output

The tkl_output interface writes formatted log output to the platform's log port and opens or closes that port. It is the kernel abstraction layer (TKL) port each platform implements; the TAL logging layer routes messages through it.

tkl_log_output

void tkl_log_output(const char *format, ...);

Outputs formatted log information to the log port.

ParameterDescription
formatprintf-style format string, followed by a variable number of arguments.
  • Return value: none.

tkl_log_close

OPERATE_RET tkl_log_close(void);

Closes the log port.

  • Parameters: none.
  • Return value: OPRT_OK on success. Any other value indicates an error; see tuya_error_code.h.

tkl_log_open

OPERATE_RET tkl_log_open(void);

Opens the log port.

  • Parameters: none.
  • Return value: OPRT_OK on success. Any other value indicates an error; see tuya_error_code.h.