in galog_serial.go [51:64]
func NewSerialBackend(ctx context.Context, opts *SerialOptions) *SerialBackend {
res := &SerialBackend{
backendID: "log-backend,serial",
opts: opts,
config: newBackendConfig(defaultSerialQueueSize),
}
res.config.SetFormat(ErrorLevel,
`{{.When.Format "2006-01-02T15:04:05.0000Z07:00"}} {{if .Prefix}} {{.Prefix}}: {{end}}[{{.Level}}]: {{.Message}}`)
res.config.SetFormat(DebugLevel,
`{{.When.Format "2006-01-02T15:04:05.0000Z07:00"}} {{if .Prefix}} {{.Prefix}}: {{end}}[{{.Level}}]: ({{.File}}:{{.Line}}) {{.Message}}`)
return res
}