Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/luoqisheng/consoleredirect
https://github.com/luoqisheng/consoleredirect
Last synced: 15 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/luoqisheng/consoleredirect
- Owner: luoqisheng
- Created: 2022-08-17T14:18:34.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-05-05T02:49:25.000Z (over 1 year ago)
- Last Synced: 2023-06-16T15:36:29.923Z (over 1 year ago)
- Language: Swift
- Size: 1.06 MB
- Stars: 36
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ConsoleRedirect
## 功能
ConsoleRedirect 是一款通过redirect App的stderr和 stdoutput的将Xcode的输出实时同步写到macosx 下指定目录的工具。配合[klogg](https://github.com/variar/klogg)等日志查看工具,可以实时查看、过滤、查找、高亮Xcode的控制台输出。用于代替比较功能比较单薄的Xcode 控制台。## ConsoleRedirect的接入非常简单,只需要4步:
* pod 引入
`pod "ConsoleRedirect", :git => 'https://github.com/luoqisheng/ConsoleRedirect.git', :tag => '1.0.7', :configurations => ['Debug']`
* pod install, 此时ConsoleRedirect会将工具脚本放在$HOME/ConsoleRedirect目录下
* Xcode Behavior,在Running的Generate Output 下新增 run script => $HOME/ConsoleRedirect/console_redirect_start.sh, 在complete和 exit下新增 run script => $HOME/ConsoleRedirect/console_redirect_stop.sh
* Klogg打开项目下console.log,按下F(Follow)键, enjoy ithttps://user-images.githubusercontent.com/5061690/185590593-0a5bc411-ae7e-4c58-af9c-0df867ca6142.mov
## 其他
[klogg的使用文档](https://github.com/variar/klogg/blob/master/DOCUMENTATION.md)