Skip to main content
Skip table of contents

CDRFLEx.set_on_tp_log

Features

This function is used to register a callback function to check log messages when the tp_log command is used in DRL. It is useful when functions that should be executed automatically are made.

Parameter

Parameter Name

Data Type

Default Value

Description

pCallbackFunc

TOnTpLogCB

-

Refer to definition of callback function

Return

None.

Example

CPP
void OnTpLog(const char* strLog)
{
    cout << "Log Message: " << strLog << endl;
}
int main()
{
	drfl.set_on_tp_log(OnTpLogCB)
}
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.