This commit is contained in:
2021-02-26 15:52:29 -05:00
parent 8dea2185fd
commit d085d0f3ee
10 changed files with 407 additions and 0 deletions

25
logging/consts.go Normal file
View File

@@ -0,0 +1,25 @@
package logging
import (
`os`
`r00t2.io/goutils/types`
)
const (
devlog string = "/dev/log"
logPerm os.FileMode = 0600
)
// Flags for logger configuration
const (
LogUndefined types.MaskBit = 1 << iota
LogJournald
LogSyslog
LogFile
LogStdout
)
var (
defLogPaths = []string{"/var/log/golang/program.log", "~/.local/log/golang/program.log"}
)