OSDN Git Service

modify ci
[bytom/vapor.git] / vendor / github.com / go-kit / kit / log / term / term.go
diff --git a/vendor/github.com/go-kit/kit/log/term/term.go b/vendor/github.com/go-kit/kit/log/term/term.go
deleted file mode 100644 (file)
index 3965f1c..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-// Package term provides tools for logging to a terminal.
-package term
-
-import (
-       "io"
-
-       "github.com/go-kit/kit/log"
-)
-
-// NewLogger returns a Logger that takes advantage of terminal features if
-// possible. Log events are formatted by the Logger returned by newLogger. If
-// w is a terminal each log event is colored according to the color function.
-func NewLogger(w io.Writer, newLogger func(io.Writer) log.Logger, color func(keyvals ...interface{}) FgBgColor) log.Logger {
-       if !IsTerminal(w) {
-               return newLogger(w)
-       }
-       return NewColorLogger(NewColorWriter(w), newLogger, color)
-}
-
-type fder interface {
-       Fd() uintptr
-}