Skip to content

Commit

Permalink
Merge pull request #161
Browse files Browse the repository at this point in the history
feature-v2.0.1
  • Loading branch information
karldoenitz authored Nov 21, 2024
2 parents e356135 + 5bc90c0 commit 919a3c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions logger/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ func InitTrace(level string) {
Trace.Level = TraceLevel
switch {
case level == "" || level == "discard":
Trace.Logger = log.New(ioutil.Discard, "\x1b[42m TRACE \x1b[0m ", log.Ldate|log.Ltime)
Trace.Logger = log.New(io.Discard, "\x1b[42m TRACE \x1b[0m ", log.Ldate|log.Ltime)
break
case level == "stdout":
Trace.Logger = log.New(os.Stdout, "\x1b[42m TRACE \x1b[0m ", log.Ldate|log.Ltime)
Expand All @@ -210,7 +210,7 @@ func InitInfo(level string) {
Info.Level = InfoLevel
switch {
case level == "" || level == "discard":
Info.Logger = log.New(ioutil.Discard, "\x1b[44m INFO \x1b[0m ", log.Ldate|log.Ltime)
Info.Logger = log.New(io.Discard, "\x1b[44m INFO \x1b[0m ", log.Ldate|log.Ltime)
break
case level == "stdout":
Info.Logger = log.New(os.Stdout, "\x1b[44m INFO \x1b[0m ", log.Ldate|log.Ltime)
Expand Down

0 comments on commit 919a3c1

Please sign in to comment.