Commit f1f1eb04 authored by Maxime's avatar Maxime

Changed the facility of syslog to be LOCAL0

parent 7fb1c7e9
......@@ -30,7 +30,7 @@ func Errors(c *Controller) (middleware.Middleware, error) {
} else if handler.LogFile == "stderr" {
file = os.Stderr
} 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 {
return err
}
......
......@@ -29,7 +29,7 @@ func Log(c *Controller) (middleware.Middleware, error) {
} else if rules[i].OutputFile == "stderr" {
file = os.Stderr
} 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 {
return err
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment