Logging

In this section, you will learn how to log certain data in your Jovo app.

Introduction to Logging

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:

This will enable both Request Logging and Response Logging, which can also be enabled separately. For this, see the sections below.

Log Requests

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:

Log Responses

You can log the outgoing JSON responses by adding the following configuration:

The result looks like this:

Similar to requestLoggingObjects, you can limit the response logging output to specific objects, as well.

The example above will reduce the log output to this:

Comments and Questions

Any specific questions? Just drop them below. Alternatively, you can also fill out this feedback form. Thank you!

Join Our Newsletter

Be the first to get our free tutorials, courses, and other resources for voice app developers.