Browse code

Change syslog format and facility

This patch changes two things

1. Set facility to LOG_DAEMON
2. Remove ": " from tag so that the tag + pid become a single column in
the log

Signed-off-by: Darren Shepherd <darren@rancher.com>

Darren Shepherd authored on 2015/04/15 16:16:43
Showing 1 changed files
... ...
@@ -14,7 +14,7 @@ type Syslog struct {
14 14
 }
15 15
 
16 16
 func New(tag string) (logger.Logger, error) {
17
-	log, err := syslog.New(syslog.LOG_USER, fmt.Sprintf("%s: <%s> ", path.Base(os.Args[0]), tag))
17
+	log, err := syslog.New(syslog.LOG_DAEMON, fmt.Sprintf("%s/%s", path.Base(os.Args[0]), tag))
18 18
 	if err != nil {
19 19
 		return nil, err
20 20
 	}