소스 검색

https://github.com/labstack/echo/pull/628, https://github.com/labstack/echo/issues/616

Signed-off-by: Vishal Rana <vr@labstack.com>
Vishal Rana 9 년 전
부모
커밋
f20a0d624b
2개의 변경된 파일22개의 추가작업 그리고 0개의 파일을 삭제
  1. 13 0
      log/color.go
  2. 9 0
      log/white.go

+ 13 - 0
log/color.go

@@ -0,0 +1,13 @@
+// +build !appengine
+
+package log
+
+import (
+	"io"
+
+	"github.com/mattn/go-colorable"
+)
+
+func output() io.Writer {
+	return colorable.NewColorableStdout()
+}

+ 9 - 0
log/white.go

@@ -0,0 +1,9 @@
+// +build appengine
+
+package log
+
+import "io"
+
+func output() io.Writer {
+	return os.stdout
+}