2024-01-15 19:24:48 -06:00
|
|
|
package linuxstatus
|
|
|
|
|
|
|
|
/*
|
|
|
|
this enables command line options from other packages like 'gui' and 'log'
|
|
|
|
*/
|
|
|
|
|
2024-01-21 02:23:47 -06:00
|
|
|
import (
|
2024-01-15 19:24:48 -06:00
|
|
|
"go.wit.com/log"
|
|
|
|
)
|
|
|
|
|
|
|
|
var NOW *log.LogFlag
|
|
|
|
var INFO *log.LogFlag
|
|
|
|
var NET *log.LogFlag
|
|
|
|
var DNS *log.LogFlag
|
|
|
|
|
|
|
|
var PROC *log.LogFlag
|
|
|
|
var SPEW *log.LogFlag
|
|
|
|
var WARN *log.LogFlag
|
|
|
|
|
|
|
|
var CHANGE *log.LogFlag
|
|
|
|
var STATUS *log.LogFlag
|
|
|
|
|
|
|
|
func init() {
|
|
|
|
full := "go.wit.com/control-panels/dns/linuxstatus"
|
|
|
|
short := "linux"
|
|
|
|
|
2024-01-21 02:23:47 -06:00
|
|
|
NOW = log.NewFlag("NOW", true, full, short, "temp debugging stuff")
|
2024-01-15 19:24:48 -06:00
|
|
|
INFO = log.NewFlag("INFO", false, full, short, "normal debugging stuff")
|
2024-01-21 02:23:47 -06:00
|
|
|
NET = log.NewFlag("NET", false, full, short, "Network logging")
|
|
|
|
DNS = log.NewFlag("DNS", false, full, short, "dnsStatus.update()")
|
2024-01-15 19:24:48 -06:00
|
|
|
|
|
|
|
PROC = log.NewFlag("PROC", false, full, short, "/proc loggging")
|
2024-01-21 02:23:47 -06:00
|
|
|
WARN = log.NewFlag("WARN", true, full, short, "bad things")
|
2024-01-15 19:24:48 -06:00
|
|
|
SPEW = log.NewFlag("SPEW", false, full, short, "spew stuff")
|
|
|
|
|
2024-01-21 02:23:47 -06:00
|
|
|
CHANGE = log.NewFlag("CHANGE", true, full, short, "when host or dns change")
|
2024-01-15 19:24:48 -06:00
|
|
|
STATUS = log.NewFlag("STATUS", false, full, short, "Update() details")
|
|
|
|
}
|