Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[enhancement]: Log output to console and file at the same time #4825

Open
srkidd opened this issue May 31, 2024 · 3 comments
Open

[enhancement]: Log output to console and file at the same time #4825

srkidd opened this issue May 31, 2024 · 3 comments

Comments

@srkidd
Copy link

srkidd commented May 31, 2024

Describe your feature request here

Is it possible to output the log to console and file at the same time? We have requirements where we want to still see the live output from the agent but want to upload the log to our own observability stack at the end of a pipeline run. I see the agent has -- disableloguploads but this would only get use the file part and we would lose the live stream to the service.

@srkidd
Copy link
Author

srkidd commented Jun 3, 2024

https://github.com/srkidd/azure-pipelines-agent/tree/users/srkidd/enable-stream-and-file-output

I have created a fork and got it working. I have tested locally.

@vmapetr
Copy link
Contributor

vmapetr commented Jun 5, 2024

Hi @srkidd thanks for reporting!
We are working on more prioritized issues at the moment, but will get back to this one soon. You can send the related PR to review, if you think that following changes should be implemented in the agent. Thanks!

@srkidd
Copy link
Author

srkidd commented Jun 5, 2024

Created a PR for it

#4829

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants