Function SimOneAPI::SetLogOut

Function Documentation

bool SimOneAPI::SetLogOut(ESimOne_LogLevel_Type level, const char *format, ...)

日志设置接口

Logging configuration interface.

用于配置日志级别和输出格式,支持printf风格的格式化字符串

Used to configure the log level and output format, supporting printf-style format strings.

参数:
ESimOne_LogLevel_Type level

[in]

日志级别(警告、错误、信息)

Log level (warning, error, info).

const char *format

[in]

日志输出格式字符串,支持printf风格的格式化

The output format string for the log, supporting printf-style formatting.

...

[in]

可变参数,对应format中的格式说明符

Variable arguments corresponding to format specifiers in the format string.

返回:

成功设置返回true,否则返回false

Returns true if the configuration is successful, false otherwise.