Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/neworld/logchopper
Tool to split long gradle debug log by tasks
https://github.com/neworld/logchopper
gradle log util
Last synced: about 1 month ago
JSON representation
Tool to split long gradle debug log by tasks
- Host: GitHub
- URL: https://github.com/neworld/logchopper
- Owner: neworld
- License: apache-2.0
- Created: 2018-09-09T20:52:39.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-11-13T20:41:37.000Z (about 6 years ago)
- Last Synced: 2024-10-13T14:28:41.437Z (2 months ago)
- Topics: gradle, log, util
- Language: Kotlin
- Size: 95.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
[![Build Status](https://travis-ci.org/neworld/logchopper.svg?branch=master)](https://travis-ci.org/neworld/logchopper)
[![GitHub release](https://img.shields.io/github/release/neworld/logchopper/all.svg)](https://github.com/neworld/logchopper)A large project could have more than a couple of hundred tasks and debug log could grow more than 40mb.
It is not an easy task for log viewer or even developer himself.
This tool chops huge gradle debug log into smaller pieces by tasks.### Usage
```
./gradlew build --debug > hugelog.txt
logchopper -o firewood/ hugelog.txt
```or you could chop log via pipe:
```
./gradlew build --debug | logchopper
```Chopped files are prefixed with index and named by task name:
```
...
0361-:app-features:item-ui:generateDebugSources.txt
0362-:application:processGlobalDebugResources.txt
0363-:application:prepareLintJar.txt
0364-:application:generateGlobalDebugSources.txt
0365-:application:compileGlobalDebugNdk.txt
0366-:application:processGlobalDebugJavaRes.txt
0367-:app-model:kaptGenerateStubsDebugKotlin.txt
...
```### Installation
The program is distributed via [NPM](https://www.npmjs.com/package/gradle-logchopper).
Installation:
```sh
npm i gradle-logchopper
```### License
```
Copyright 2018 Andrius Semionovas (neworldLT)Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
```