Skip to content

Commit

Permalink
Merge pull request #135 from devopsfaith/NoOpLogger
Browse files Browse the repository at this point in the history
Add the NoOp Logger.
  • Loading branch information
kpacha committed May 21, 2018
2 parents 3158e75 + abdfb55 commit 4719832
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions logging/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ package logging
import (
"fmt"
"io"
"io/ioutil"
"log"
"os"
"strings"
Expand Down Expand Up @@ -43,6 +44,8 @@ var (
"ERROR": LEVEL_ERROR,
"CRITICAL": LEVEL_CRITICAL,
}
// NoOp is the NO-OP logger
NoOp, _ = NewLogger("CRITICAL", ioutil.Discard, "")
)

// NewLogger creates and returns a Logger object
Expand Down

0 comments on commit 4719832

Please sign in to comment.