Logging and Observability
Obtaining logs and metrics from your agents and sessions
This section of the documentation is currently work in progress. Please check back soon for updates.
Agent logs
Agent logs are available via both the CLI and Dashboard. You can view logs for a specific agent by running the following command:
This command accept various filters to help you narrow down the logs you are looking for. For example, you can filter logs by severity level:
Session logging
We recommend using the loguru
library for logging within your agent. This will ensure any logging within your agent associated to the session it is running in.
If you are handling logging manually, you can obtain the active session ID from the PipecatSessionArguments
object (or subclass alternative) passed to your bot()
method:
See the Session Arguments reference for more additional SessionArgument types.