evCreate API 5.7 Help

SetLogging Function

Turns on or off and configures printing the logging output to the console.

SetLogging(enable: boolean, filter?: [[[EvLogLevelFilter|evloglevelfilter-enumeration.html]]]): void

Parameters

enable: boolean

A Boolean, a switch to turn on or off printing the logging output to the console. The default value is false, which is off.

filter?: EvLogLevelFilter

An EvLogLevelFilter enumeration member, an optional filter setting to specify which logging output should be filtered out when printing it to the console. The default value is all, which is to filter all the output—no console output is displayed.

Return value

void

Void.

Discussion

As the default values of both parameters turn off printing the logging output to the console, you should specify any filter value except all when printing the output for the first time; for example:

evCreate.config.SetLogging(enable: true, filter: "error");
01 May 2025