mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
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>
This commit is contained in:
parent
da697dbed6
commit
05641ccffc
1 changed files with 1 additions and 1 deletions
|
@ -14,7 +14,7 @@ type Syslog struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
func New(tag string) (logger.Logger, error) {
|
func New(tag string) (logger.Logger, error) {
|
||||||
log, err := syslog.New(syslog.LOG_USER, fmt.Sprintf("%s: <%s> ", path.Base(os.Args[0]), tag))
|
log, err := syslog.New(syslog.LOG_DAEMON, fmt.Sprintf("%s/%s", path.Base(os.Args[0]), tag))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue