func NewSyslogBackend()

in galog_syslog_linux.go [26:37]


func NewSyslogBackend(ident string) *SyslogBackend {
	res := &SyslogBackend{
		backendID: syslogBackendID,
		ident:     ident,
		config:    newBackendConfig(defaultSyslogQueueSize),
	}

	res.config.SetFormat(ErrorLevel, "{{if .Prefix}}{{.Prefix}}: {{end}}{{.Message}}")
	res.config.SetFormat(DebugLevel, "{{if .Prefix}}{{.Prefix}}: {{end}}({{.File}}:{{.Line}}) {{.Message}}")

	return res
}