Changed the facility of syslog to be LOCAL0

This commit is contained in:
Maxime 2015-08-03 12:00:17 +02:00
parent 7fb1c7e91d
commit f1f1eb040a
2 changed files with 2 additions and 2 deletions

View File

@ -30,7 +30,7 @@ func Errors(c *Controller) (middleware.Middleware, error) {
} else if handler.LogFile == "stderr" { } else if handler.LogFile == "stderr" {
file = os.Stderr file = os.Stderr
} else if handler.LogFile == "syslog" { } else if handler.LogFile == "syslog" {
file, err = gsyslog.NewLogger(gsyslog.LOG_ERR, "SYSLOG", "caddy") file, err = gsyslog.NewLogger(gsyslog.LOG_ERR, "LOCAL0", "caddy")
if err != nil { if err != nil {
return err return err
} }

View File

@ -29,7 +29,7 @@ func Log(c *Controller) (middleware.Middleware, error) {
} else if rules[i].OutputFile == "stderr" { } else if rules[i].OutputFile == "stderr" {
file = os.Stderr file = os.Stderr
} else if rules[i].OutputFile == "syslog" { } else if rules[i].OutputFile == "syslog" {
file, err = gsyslog.NewLogger(gsyslog.LOG_INFO, "SYSLOG", "caddy") file, err = gsyslog.NewLogger(gsyslog.LOG_INFO, "LOCAL0", "caddy")
if err != nil { if err != nil {
return err return err
} }