Skip to content
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.

Commit

Permalink
Resubmit PR# 2332: Enable colorized logging on Windows (#2482)
Browse files Browse the repository at this point in the history
* Enable colorized logging on Windows

* Fix gofmt errors

* add go-colorable deps
  • Loading branch information
drdarshan authored and jackfrancis committed Mar 20, 2018
1 parent fe48b61 commit 4468670
Show file tree
Hide file tree
Showing 28 changed files with 1,552 additions and 2 deletions.
8 changes: 6 additions & 2 deletions glide.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions glide.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ import:
- autorest/date
- package: github.com/sirupsen/logrus
version: v1.0.3
- package: github.com/mattn/go-colorable
version: v0.0.9
- package: github.com/ghodss/yaml
version: v1.0.0
- package: github.com/mitchellh/go-homedir
Expand Down
3 changes: 3 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,13 @@ package main

import (
"github.com/Azure/acs-engine/cmd"
"github.com/mattn/go-colorable"
log "github.com/sirupsen/logrus"
)

func main() {
log.SetFormatter(&log.TextFormatter{ForceColors: true})
log.SetOutput(colorable.NewColorableStdout())
if err := cmd.NewRootCmd().Execute(); err != nil {
log.Fatalln(err)
}
Expand Down
9 changes: 9 additions & 0 deletions vendor/github.com/mattn/go-colorable/.travis.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 21 additions & 0 deletions vendor/github.com/mattn/go-colorable/LICENSE

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

48 changes: 48 additions & 0 deletions vendor/github.com/mattn/go-colorable/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 30 additions & 0 deletions vendor/github.com/mattn/go-colorable/colorable_others.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

83 changes: 83 additions & 0 deletions vendor/github.com/mattn/go-colorable/colorable_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 4468670

Please sign in to comment.