Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes #519
This writes logs to
~/.fuelup/log
rolling over every hour. For example~/.fuelup/log/fuelup.log.2023-11-22-00
Since
tracing
is used for showing output to the user as well, I added a filter so thatdebug
logs will only be logged to the filesystem, not shown to the user.The PR also includes:
writeln
s. In order for the log file to capture everything the user is shown, we should output everything through tracing macros.debug
logs about the environment and the command that was called. It doesn't log the full PATH, because that could contain sensitive information, rather it logs whether or not the.fuelup
directory is part of the path.Example of the current log output after
fuelup show
:User sees
Logged to file