From 8a58ff0147aa85ba19f79c4e7abc8de3b4d8b451 Mon Sep 17 00:00:00 2001 From: Manit Kumar <83183355+Manitchahar@users.noreply.github.com> Date: Thu, 10 Sep 2026 05:07:02 +0530 Subject: [PATCH] docs: explain LoggingPlugin output limits --- docs/observability/logging.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/docs/observability/logging.md b/docs/observability/logging.md index d93869f177..99b37952a4 100644 --- a/docs/observability/logging.md +++ b/docs/observability/logging.md @@ -139,6 +139,20 @@ logging.basicConfig( ) ``` +#### Console activity logging + +Add a `LoggingPlugin` to your runner's `plugins` list to print agent activity. +By default, it truncates each text part and rendered system instruction to 200 +characters, and tool arguments and results to 300 characters. Set +`max_content_length` and `max_args_length` to change these limits, or use `None` +to disable truncation: + +```python +from google.adk.plugins.logging_plugin import LoggingPlugin + +logging_plugin = LoggingPlugin(max_content_length=None, max_args_length=None) +``` + #### Capture prompt content You can enable full prompt logging programmatically by setting an environment