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>
| ... | ... |
@@ -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 |
} |