In this section, you will learn how to log certain data in your Jovo app.
When you're using a local webhook, it's easy to use logging for debugging, like this:
For voice app specific debugging, Jovo offers some handy functions for logging incoming requests and outgoing responses.
You can enable logging by using the following:
You can log the incoming JSON requests by adding the following configuration:
The result looks like this (data changed):
As you can see above, the logs of a request are quite long and impractical, if you only need certain information. With
requestObjects, you can limit the log output to specific objects.
The example for
request above will reduce the log output to this:
You can log the outgoing JSON responses by adding the following configuration:
The result looks like this:
requestLoggingObjects, you can limit the response logging output to specific objects, as well.
The example above will reduce the log output to this:
Any specific questions? Just drop them below. Alternatively, you can also fill out this feedback form. Thank you!
Be the first to get our free tutorials, courses, and other resources for voice app developers.