change to use cli logger

This commit is contained in:
TJ Holowaychuk
2017-11-18 17:44:09 -08:00
parent 29ddc11c6c
commit 9e0804a310
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -11,7 +11,7 @@ $ go get github.com/tj/node-prune/cmd/node-prune
```
$ cd myapp
$ node-prune
INFO[0000] complete duration=195ms files_removed=1,222 files_total=25,520 size_removed=6.8 MB
• complete duration=217ms files_removed=1,222 files_total=25,520 size_removed=6.8 MB
```
## What?
+2 -2
View File
@@ -5,14 +5,14 @@ import (
"time"
"github.com/apex/log"
"github.com/apex/log/handlers/text"
"github.com/apex/log/handlers/cli"
"github.com/dustin/go-humanize"
"github.com/tj/node-prune"
)
func init() {
log.SetHandler(text.Default)
log.SetHandler(cli.Default)
}
func main() {