chore!: Sets up google_adk for top level logger namespace. Removes --log_to_tmp option in adk web and adk api_server for the same reason.

Context: google-auth commit [1] broke adk log, because it disables the top level logger named "google", which is also adk's top level logger. We establish a separate top level logger with a different name `google_adk` to prevent this in the future.

This commit only changes google_llm.py. All other files will be changed in later commits.

[1] 77ad53eb00 (diff-e386c2b2c39b4d746c1e257f503acecbde49b1746b1a34f53b57083ed6094161)

PiperOrigin-RevId: 759872317
This commit is contained in:
Wei Sun (Jack)
2025-05-16 21:27:56 -07:00
committed by Copybara-Service
parent 021aaddf32
commit 482099c925
3 changed files with 16 additions and 36 deletions
+1 -1
View File
@@ -36,7 +36,7 @@ from .llm_response import LlmResponse
if TYPE_CHECKING:
from .llm_request import LlmRequest
logger = logging.getLogger(__name__)
logger = logging.getLogger('google_adk.' + __name__)
_NEW_LINE = '\n'
_EXCLUDED_PART_FIELD = {'inline_data': {'data'}}