MailHog/vendor/github.com/ian-kent/go-log/layout/basic.go

19 lines
301 B
Go
Raw Normal View History

2017-04-16 23:42:21 +00:00
package layout
import (
"fmt"
"github.com/ian-kent/go-log/levels"
)
type basicLayout struct {
Layout
}
func Basic() *basicLayout {
return &basicLayout{}
}
func (a *basicLayout) Format(level levels.LogLevel, message string, args ...interface{}) string {
return fmt.Sprintf(message, args...)
}