mirror of
https://gitlab.com/ric_harvey/MailHog.git
synced 2024-11-28 00:34:04 +00:00
19 lines
301 B
Go
19 lines
301 B
Go
|
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...)
|
||
|
}
|