-
Notifications
You must be signed in to change notification settings - Fork 480
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
logfile enhancement #831
Comments
OK, I agree with you that having the log file in the data directory (with a fixed name) is good. But the problem is that we need to consider backward compatibility of the option because it used to have an argument for the file name. Maybe it'd be nice to use the given name in the data directory. |
I'm okay with it. We should also think how to handle the case when |
I'd like to take it |
@junhoryu Thanks! Please take it and let me know if you have any problems. |
@junhoryu Do you still have a plan to work on this? |
How to use --logfile option
How to use --host optionIn host, Currently, the --logfile option stores a logfile in the uftrace execution location. TODO
|
I will take it. |
-H option is changed. Backwards compatibility for --host option needs to be considered. |
uftrace: Improve logfile creation location Ensure that when using "--logfile=<name>", the logfile is created inside the uftrace.data directory. Additionally, when using both "--host" and "--logfile" options simultaneously on the clinet, the logfile in the uftrace.data directory is sent to the host. Fixed: namhyung#831
Hello @namhyung @honggyukim I am a mentee participating in the uftrace open-source project in OSSCA. I have attempted to resolve the issue#831 regarding the logfile enhancement. Before: Currently, the The After: The logfile is now created inside the When using the |
Ensure that when using "--logfile=<name>", the logfile is created inside the uftrace.data directory. Additionally, when using both "--host" and "--logfile" options simultaneously on the client, the logfile in the uftrace.data directory is sent to the host. Fixed: namhyung#831 Signed-off-by: Rihyeon Kim <[email protected]>
Ensure that when using "--logfile=<name>", the logfile is created inside the uftrace.data directory. Additionally, when using both "--host" and "--logfile" options simultaneously on the client, the logfile in the uftrace.data directory is sent to the host. Fixed: namhyung#831 Signed-off-by: Rihyeon Kim <[email protected]>
Ensure that when using "--logfile=<name>", the logfile is created inside the uftrace.data directory. Additionally, when using both "--host" and "--logfile" options simultaneously on the client, the logfile in the uftrace.data directory is sent to the host. Fixed: namhyung#831 Signed-off-by: Rihyeon Kim <[email protected]>
I would like to create the logfile inside
uftrace.data
directory by default so that external users can send it us simply with a single directory. And the name doesn't have to be different all the time.The current implementation requires explicitly remove the previous logfile because its open mode is
append
, but we don't have to remove it anymore if it's created insideuftrace.data
.The previous discussion is in #707.
In addition, I think we don't have to provide logfile name explicitly. Why don't we just fix the logfile name as
uftrace.data/logfile.txt
? It will look a lot simpler.The text was updated successfully, but these errors were encountered: