spotify / XCRemoteCache

Other
830 stars 53 forks source link

Decorate logs with a target name #88

Closed polac24 closed 2 years ago

polac24 commented 2 years ago

Reading logs with log show --predicate .... is very difficult for a project with many targets. It is hard to distinguish the target it comes from. This PR prefixes all log messages with (TargetName) in the prebuild/postbuild processes.
If the target name is not known yet (initialization phase), the prefix is not added.

Before

Screenshot 2022-02-17 at 20 38 55

After

Screenshot 2022-02-17 at 20 35 48