File tree Expand file tree Collapse file tree 3 files changed +17
-8
lines changed Expand file tree Collapse file tree 3 files changed +17
-8
lines changed Original file line number Diff line number Diff line change 1
1
module github.com/nezhahq/service
2
2
3
- go 1.12
3
+ go 1.18
4
4
5
- require golang.org/x/sys v0.20.0
5
+ require (
6
+ github.com/nezhahq/xsyslog v1.0.0
7
+ golang.org/x/sys v0.28.0
8
+ )
9
+
10
+ require github.com/ebitengine/purego v0.8.1 // indirect
Original file line number Diff line number Diff line change 1
- golang.org/x/sys v0.0.0-20201015000850-e3ed0017c211 h1:9UQO31fZ+0aKQOFldThf7BKPMJTiBfWycGh/u3UoO88 =
2
- golang.org/x/sys v0.0.0-20201015000850-e3ed0017c211 /go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs =
3
- golang.org/x/sys v0.20.0 h1:Od9JTbYCk261bKm4M/mw7AklTlFYIa0bIp9BgSm1S8Y =
4
- golang.org/x/sys v0.20.0 /go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA =
1
+ github.com/ebitengine/purego v0.8.1 h1:sdRKd6plj7KYW33EH5As6YKfe8m9zbN9JMrOjNVF/BE =
2
+ github.com/ebitengine/purego v0.8.1 /go.mod h1:iIjxzd6CiRiOG0UyXP+V1+jWqUXVjPKLAI0mRfJZTmQ =
3
+ github.com/nezhahq/xsyslog v1.0.0 h1:fSSDxaMy7eEWdTB5L2yp47GOctOM/gItfPsF1freZBc =
4
+ github.com/nezhahq/xsyslog v1.0.0 /go.mod h1:wRJ6n/bly5i71/ZWhnoA39v0rFvr3Q1PSlIlExbX3fk =
5
+ golang.org/x/sys v0.28.0 h1:Fksou7UEQUWlKvIdsqzJmUmCX3cZuD2+P3XyyzwMhlA =
6
+ golang.org/x/sys v0.28.0 /go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA =
Original file line number Diff line number Diff line change @@ -15,20 +15,22 @@ import (
15
15
"log/syslog"
16
16
"os/exec"
17
17
"syscall"
18
+
19
+ "github.com/nezhahq/xsyslog"
18
20
)
19
21
20
22
const defaultLogDirectory = "/var/log"
21
23
22
24
func newSysLogger (name string , errs chan <- error ) (Logger , error ) {
23
- w , err := syslog .New (syslog .LOG_DAEMON | syslog .LOG_INFO , name )
25
+ w , err := xsyslog .New (syslog .LOG_DAEMON | syslog .LOG_INFO , name )
24
26
if err != nil {
25
27
return nil , err
26
28
}
27
29
return sysLogger {w , errs }, nil
28
30
}
29
31
30
32
type sysLogger struct {
31
- * syslog .Writer
33
+ * xsyslog .Writer
32
34
errs chan <- error
33
35
}
34
36
You can’t perform that action at this time.
0 commit comments