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

25 lines
439 B
Go
Raw Normal View History

2016-08-10 06:56:48 +00:00
package layout
/*
Layouts control the formatting of data into a printable log string.
For example, the Basic layout passes the log message and arguments
through fmt.Sprintf.
Satisfy the Layout interface to implement your own log layout.
*/
import (
"github.com/ian-kent/go-log/levels"
)
type Layout interface {
Format(level levels.LogLevel, message string, args ...interface{}) string
}
func Default() Layout {
return Basic()
}