If needed, a log file can be configured. Calls have to be made prior to any other QR invoice function call.

SetLogLevel("trace");
SetLogFile("qrinvoice.log");

Setting Log Level

Function Name

SetLogLevel

Type Description

Parameters

LogLevel

const char*

The log level: trace | debug | info | warning | error | critical

Returns

return code

unsigned int

0 = Success 100 = Technical Error

Set Log File

Function Name

SetLogFile

Type Description

Parameters

LogFile

const char*

The log file path

Returns

return code

unsigned int

0 = Success 100 = Technical Error

Set Lazy Log File

The difference between the regular log file and the lazy log file is, that the lazy log file is only created when first log event is flushed, whereas the regular log file is immediately created.

Function Name

SetLazyLogFile

Type Description

Parameters

LogFile

const char*

The log file path

Returns

return code

unsigned int

0 = Success 100 = Technical Error