Skip to content

Commit

Permalink
Merge pull request #104 from raviqqe/new-colorine
Browse files Browse the repository at this point in the history
Use new constructor for logger
  • Loading branch information
motemen committed Aug 20, 2018
2 parents 7e68f82 + 344a2a8 commit 142bf31
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions utils/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"github.com/motemen/go-colorine"
)

var logger = &colorine.Logger{
var logger = colorine.NewLogger(
colorine.Prefixes{
"git": colorine.Verbose,
"hg": colorine.Verbose,
Expand All @@ -23,10 +23,7 @@ var logger = &colorine.Logger{
"authorized": colorine.Notice,

"error": colorine.Error,

"": colorine.Info,
},
}
}, colorine.Info)

func Log(prefix, message string) {
logger.Log(prefix, message)
Expand Down

0 comments on commit 142bf31

Please sign in to comment.