Provide way to replace strings in logs
- Dominant language
- Go
- Stars
- 1.1k
- Forks
- 378
- Avg merge
- 2d 6h
- Merged PRs (30d)
- 74
Description
**Is your feature request related to a problem? Please describe.**
A buildkite setup I use has a very long (175 chars) sandboxed path to the build directory, which is printed ~1800 times throughout the build and tests. It makes it hard to quickly parse logs because of wrapping, and that the key relevant detail is a small fraction of the text output.
The paths from within this path are printed from various tools and code paths, and would thus be difficult to tokenize the path at the point of print.
**Describe the solution you'd like**
A way to replace strings in the log that is displayed in buildkite
```
Replacing the following strings:
/some/really/long/path/to/my_repo => [my_repo]
...
[my_repo]/contrib/main.sh 733
...
```
Perhaps raw logs could maintain the original strings?
**Describe alternatives you've considered**
**Additional context**
Contributor guide
Assessment
This issue has not been assessed yet.