Skip to content

Customizing or disabling the logs which ADK prints #84

@ipeychev

Description

@ipeychev

Hello,

There are a few issues with the logger in the ADK.

  1. It seems ADK makes decision by itself what to log, when and how. This is too much power.
  2. The logs are not formatted properly on GCP. Here is how a log entry looks on Cloud Run:
Image Image

Please, note these [32m, [0m. What do they mean?

  1. Logging such a message as this one below is not ideal - there is no id, nothing. We can't group these messages on GCP to know to which conversation they belong, who was the user, etc.:
2026-01-27 15:41:57.151
�[32m[ADK INFO]:�[0m Sending out request, model: gemini-2.5-pro, backend: VERTEX_AI, stream: false
  1. When we deploy something on GCP, we are normally using import { LoggingWinston } from '@google-cloud/logging-winston'; and we have pretty good formatted logs.
    How can we provide custom transport/format to the CLI? It seems there is only --log_level <string when we use adk deploy.

  2. Is there a way to customize or disable these log entries? It seems the only option is to set setLogLevel(LogLevel.ERROR);.

Best regards,
Iliyan

==

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions