go.wit.com/log change

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2024-01-08 23:53:20 -06:00
parent 02d1d9e50c
commit fc9be41013
3 changed files with 34 additions and 34 deletions

View File

@ -8,27 +8,27 @@ import (
log "go.wit.com/log" log "go.wit.com/log"
) )
var NOW log.LogFlag var NOW *log.LogFlag
var INFO log.LogFlag var INFO *log.LogFlag
var SPEW log.LogFlag var SPEW *log.LogFlag
var WARN log.LogFlag var WARN *log.LogFlag
var ERROR log.LogFlag var ERROR *log.LogFlag
var CHANGE log.LogFlag var CHANGE *log.LogFlag
var TOOLKIT log.LogFlag var TOOLKIT *log.LogFlag
func init() { func init() {
full := "toolkit/nocui" full := "toolkit/nocui"
short := "nocui" short := "nocui"
NOW.NewFlag( "NOW", true, full, short, "temp debugging stuff") NOW = log.NewFlag( "NOW", true, full, short, "temp debugging stuff")
INFO.NewFlag("INFO", false, full, short, "normal debugging stuff") INFO = log.NewFlag("INFO", false, full, short, "normal debugging stuff")
WARN.NewFlag("WARN", true, full, short, "bad things") WARN = log.NewFlag("WARN", true, full, short, "bad things")
SPEW.NewFlag("SPEW", false, full, short, "spew stuff") SPEW = log.NewFlag("SPEW", false, full, short, "spew stuff")
ERROR.NewFlag("ERROR", false, full, short, "toolkit errors") ERROR = log.NewFlag("ERROR", false, full, short, "toolkit errors")
CHANGE.NewFlag("ERROR", false, full, short, "show when the user does things") CHANGE = log.NewFlag("ERROR", false, full, short, "show when the user does things")
TOOLKIT.NewFlag("ERROR", false, full, short, "andlabs specific stuff") TOOLKIT = log.NewFlag("ERROR", false, full, short, "andlabs specific stuff")
} }

View File

@ -10,23 +10,23 @@ import (
var outputS []string var outputS []string
var NOW log.LogFlag var NOW *log.LogFlag
var INFO log.LogFlag var INFO *log.LogFlag
var SPEW log.LogFlag var SPEW *log.LogFlag
var WARN log.LogFlag var WARN *log.LogFlag
var ERROR log.LogFlag var ERROR *log.LogFlag
func init() { func init() {
full := "toolkit/nocui" full := "toolkit/nocui"
short := "nocui" short := "nocui"
NOW.NewFlag( "NOW", true, full, short, "temp debugging stuff") NOW = log.NewFlag( "NOW", true, full, short, "temp debugging stuff")
INFO.NewFlag("INFO", false, full, short, "normal debugging stuff") INFO = log.NewFlag("INFO", false, full, short, "normal debugging stuff")
WARN.NewFlag("WARN", true, full, short, "bad things") WARN = log.NewFlag("WARN", true, full, short, "bad things")
SPEW.NewFlag("SPEW", false, full, short, "spew stuff") SPEW = log.NewFlag("SPEW", false, full, short, "spew stuff")
ERROR.NewFlag("ERROR", false, full, short, "toolkit errors") ERROR = log.NewFlag("ERROR", false, full, short, "toolkit errors")
} }

View File

@ -8,23 +8,23 @@ import (
log "go.wit.com/log" log "go.wit.com/log"
) )
var NOW log.LogFlag var NOW *log.LogFlag
var INFO log.LogFlag var INFO *log.LogFlag
var SPEW log.LogFlag var SPEW *log.LogFlag
var WARN log.LogFlag var WARN *log.LogFlag
var ERROR log.LogFlag var ERROR *log.LogFlag
func init() { func init() {
full := "toolkit/nocui" full := "toolkit/nocui"
short := "nocui" short := "nocui"
NOW.NewFlag( "NOW", true, full, short, "temp debugging stuff") NOW = log.NewFlag( "NOW", true, full, short, "temp debugging stuff")
INFO.NewFlag("INFO", false, full, short, "normal debugging stuff") INFO = log.NewFlag("INFO", false, full, short, "normal debugging stuff")
WARN.NewFlag("WARN", true, full, short, "bad things") WARN = log.NewFlag("WARN", true, full, short, "bad things")
SPEW.NewFlag("SPEW", false, full, short, "spew stuff") SPEW = log.NewFlag("SPEW", false, full, short, "spew stuff")
ERROR.NewFlag("ERROR", false, full, short, "toolkit errors") ERROR = log.NewFlag("ERROR", false, full, short, "toolkit errors")
} }