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: booleanA Boolean, a switch to turn on or off printing the logging output to the console. The default value is
false, which is off.filter?: EvLogLevelFilterAn
EvLogLevelFilterenumeration member, an optional filter setting to specify which logging output should be filtered out when printing it to the console. The default value isall, which is to filter all the output—no console output is displayed.
Return value
voidVoid.
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