1
ModuleDebugging
Mees van der Wijk edited this page 2023-04-05 12:21:02 +02:00

Module Debugging

When you use the console in your module the GetiyoModuleTool will automatically convert them into internal logs. The server-side logs are directly printed to the console but the page logs are hidden by default. If you want to view the logs open the page with the debug= url parameter followed one or more module ids or module types separated by a comma. You can also use a * to show all logs.

If you did not open the page with the debug parameter, or if you want to view all logs even if they were not filtered by the debug parameter values, you can run ModuleLogs.writeOut() to write out all the logs since the page load.

Example

Show logs of all DemoModule

http://serverIp:4080/:CHANNELNAME?debug=demomodule

Show logs of all DemoModule & TestModule

http://serverIp:4080/:CHANNELNAME?debug=demomodule,testmodule

Show logs a specific module

http://serverIp:4080/:CHANNELNAME?debug=8K20FK5JSK