Files
docker-machine/libmachine/log/machine_formatter.go
Jean-Laurent de Morlhon 4792177b11 Logrus Machine Logger
Signed-off-by: Jean-Laurent de Morlhon <jeanlaurent@morlhon.net>
2015-12-07 18:36:48 +01:00

20 lines
270 B
Go

package log
import (
"bytes"
"github.com/Sirupsen/logrus"
)
type MachineFormatter struct {
}
func (d *MachineFormatter) Format(entry *logrus.Entry) ([]byte, error) {
b := &bytes.Buffer{}
b.WriteString(entry.Message)
b.WriteByte('\n')
return b.Bytes(), nil
}