logrus logger

This commit is contained in:
Anand Babu (AB) Periasamy
2015-09-09 20:28:09 -07:00
parent 4495c2d8d8
commit 6930e4d668
5 changed files with 24 additions and 412 deletions

View File

@@ -23,8 +23,6 @@ import (
"net/http"
"os"
"time"
"github.com/minio/minio/pkg/utils/log"
)
type logHandler struct {
@@ -103,7 +101,7 @@ func fileLogger(filename string) (chan<- []byte, error) {
go func() {
for message := range ch {
if _, err := io.Copy(file, bytes.NewBuffer(message)); err != nil {
log.Errorln(err)
// log.Errorln(err)
}
}
}()