Skip to content

Commit

Permalink
feat: logger lib
Browse files Browse the repository at this point in the history
  • Loading branch information
roger-king committed Jan 16, 2021
1 parent e9c02f9 commit cadc2e7
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions logger/logger.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
package logger

import (
tm "github.com/buger/goterm"
)

func Info(s string) {
tm.Println(tm.Color(tm.Bold(s), tm.BLUE))
}

func Warning(s string) {
tm.Println(tm.Color(tm.Bold(s), tm.YELLOW))
}

func Success(s string) {
tm.Println(tm.Color(tm.Bold(s), tm.GREEN))
}

func Error(s string) {
tm.Println(tm.Color(tm.Bold(s), tm.RED))
}

0 comments on commit cadc2e7

Please sign in to comment.