Skip to content
Discussion options

You must be logged in to vote

Hi @hh54188 , as far as I understood the problem is not the path itself, but the privileges required to create symlinks. If you are not an admin, the only solution I have found is to go to file agent_adk\lib\site-packages\google\adk\cli\utils\logs.py and change this:

latest_log_link = os.path.join(log_dir, f'{log_file_prefix}.latest.log')
if os.path.islink(latest_log_link):
  os.unlink(latest_log_link)
os.symlink(log_filepath, latest_log_link)

print(f'To access latest log: tail -F {latest_log_link}')
return log_filepath

by this:

import shutil

latest_log_link = os.path.join(log_dir, f'{log_file_prefix}.latest.log')

# Remove the file if it exists (symlinks or regular files)
if os.path.e…

Replies: 5 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by hh54188
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
tracing [Component] This issue is related to OpenTelemetry tracing
4 participants
Converted from issue

This discussion was converted from issue #3423 on November 08, 2025 15:04.