do bitmask better, add (COMPLETELY 100% EXPERIMENTAL NOT DONE YET) eventlog support to logger
This commit is contained in:
28
logging/consts_linux.go
Normal file
28
logging/consts_linux.go
Normal file
@@ -0,0 +1,28 @@
|
||||
package logging
|
||||
|
||||
import (
|
||||
`log/syslog`
|
||||
|
||||
`r00t2.io/goutils/bitmask`
|
||||
)
|
||||
|
||||
const (
|
||||
devlog string = "/dev/log"
|
||||
syslogFacility syslog.Priority = syslog.LOG_USER
|
||||
)
|
||||
|
||||
// Flags for logger configuration
|
||||
const (
|
||||
LogUndefined bitmask.MaskBit = 1 << iota
|
||||
LogJournald
|
||||
LogSyslog
|
||||
LogFile
|
||||
LogStdout
|
||||
)
|
||||
|
||||
var (
|
||||
defLogPaths = []string{
|
||||
"/var/log/golang/program.log",
|
||||
"~/.local/log/golang/program.log",
|
||||
}
|
||||
)
|
||||
Reference in New Issue
Block a user