Introduction
This technique can be very helpful if a channel is experiencing live issues that you cannot resolve in the Iguana editor. These could be performance issues, intermittent errors, etc.
Because the logDebug()
function has very little overhead when debug logging is disabled, it is safe to use in production code. However it is advisable only to enable debug logging for short periods because of it writes a lot of extra data to the logs (which increases log size and reduces Iguana performance).
Issue [top]
How to use logDebug()
to debug a live channel.
Solution [top]
The technique is simple enough:
- Put
logDebug()
statements in your code - Enable Debug level logging to start debug logging
- Disable Debug level logging to stop debug logging
Because the logDebug()
function has very little overhead when debug logging is disabled, it is safe to use in production code. However it is advisable only to enable debug logging for short periods because of it writes a lot of extra data to the logs (which increases log size and reduces Iguana performance).