-
Notifications
You must be signed in to change notification settings - Fork 402
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
[Feature] Sync logs to local file #632
[Feature] Sync logs to local file #632
Conversation
manual testing through replace the based image in dockerfile. |
Overall the change looks good to me beside the parameter pattern |
e722268
to
ee0f729
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank @Basasuya for your contribution!
@Basasuya can you help address @kevin85421's comment? |
ee0f729
to
97aac7b
Compare
@kevin85421 sorry for the slow reply, I have rebase the master again. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add more details about how to use this feature in your PR description? This PR will be very helpful for both users and developers to debug. Thank you! Overall, the code looks good to me, and I just added some nit comments on it.
I add the detail in PR description. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Wait for CI to pass.
@Jeffwan is this PR ready to merge? The merge is blocked by your change requests. Thank you! |
@kevin85421 Yeah, it looks good to me. |
* [logger] sync to file * fix for UT * default not output to file * fix for UT * fix for review * fix for review Co-authored-by: huyuanzhe <[email protected]>
Why are these changes needed?
support sync log to file in pod.
this feature is controllered by
log_file
parameter in command line, default only output log to stdRelated issue number
#593
Checks
Usage
use
-logFilePath=output.txt
when executing apiserveruse
-log-file-path=output.txt
when executing ray-operatoryou can add these parameter in ENTRYPOINT of Dockerfile
then swap the based image in Dockerfile which can exec into