diff --git a/andlabs/log.go b/andlabs/log.go index 594ca5c..c6a8b48 100644 --- a/andlabs/log.go +++ b/andlabs/log.go @@ -8,27 +8,27 @@ import ( log "go.wit.com/log" ) -var NOW log.LogFlag -var INFO log.LogFlag +var NOW *log.LogFlag +var INFO *log.LogFlag -var SPEW log.LogFlag -var WARN log.LogFlag +var SPEW *log.LogFlag +var WARN *log.LogFlag -var ERROR log.LogFlag -var CHANGE log.LogFlag -var TOOLKIT log.LogFlag +var ERROR *log.LogFlag +var CHANGE *log.LogFlag +var TOOLKIT *log.LogFlag func init() { full := "toolkit/nocui" short := "nocui" - NOW.NewFlag( "NOW", true, full, short, "temp debugging stuff") - INFO.NewFlag("INFO", false, full, short, "normal debugging stuff") + NOW = log.NewFlag( "NOW", true, full, short, "temp debugging stuff") + INFO = log.NewFlag("INFO", false, full, short, "normal debugging stuff") - WARN.NewFlag("WARN", true, full, short, "bad things") - SPEW.NewFlag("SPEW", false, full, short, "spew stuff") + WARN = log.NewFlag("WARN", true, full, short, "bad things") + SPEW = log.NewFlag("SPEW", false, full, short, "spew stuff") - ERROR.NewFlag("ERROR", false, full, short, "toolkit errors") - CHANGE.NewFlag("ERROR", false, full, short, "show when the user does things") - TOOLKIT.NewFlag("ERROR", false, full, short, "andlabs specific stuff") + ERROR = log.NewFlag("ERROR", false, full, short, "toolkit errors") + CHANGE = log.NewFlag("ERROR", false, full, short, "show when the user does things") + TOOLKIT = log.NewFlag("ERROR", false, full, short, "andlabs specific stuff") } diff --git a/gocui/args.go b/gocui/args.go index 5ee05c4..71dcdde 100644 --- a/gocui/args.go +++ b/gocui/args.go @@ -10,23 +10,23 @@ import ( var outputS []string -var NOW log.LogFlag -var INFO log.LogFlag +var NOW *log.LogFlag +var INFO *log.LogFlag -var SPEW log.LogFlag -var WARN log.LogFlag +var SPEW *log.LogFlag +var WARN *log.LogFlag -var ERROR log.LogFlag +var ERROR *log.LogFlag func init() { full := "toolkit/nocui" short := "nocui" - NOW.NewFlag( "NOW", true, full, short, "temp debugging stuff") - INFO.NewFlag("INFO", false, full, short, "normal debugging stuff") + NOW = log.NewFlag( "NOW", true, full, short, "temp debugging stuff") + INFO = log.NewFlag("INFO", false, full, short, "normal debugging stuff") - WARN.NewFlag("WARN", true, full, short, "bad things") - SPEW.NewFlag("SPEW", false, full, short, "spew stuff") + WARN = log.NewFlag("WARN", true, full, short, "bad things") + 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") } diff --git a/nocui/args.go b/nocui/args.go index 0dc994b..4b6b38e 100644 --- a/nocui/args.go +++ b/nocui/args.go @@ -8,23 +8,23 @@ import ( log "go.wit.com/log" ) -var NOW log.LogFlag -var INFO log.LogFlag +var NOW *log.LogFlag +var INFO *log.LogFlag -var SPEW log.LogFlag -var WARN log.LogFlag +var SPEW *log.LogFlag +var WARN *log.LogFlag -var ERROR log.LogFlag +var ERROR *log.LogFlag func init() { full := "toolkit/nocui" short := "nocui" - NOW.NewFlag( "NOW", true, full, short, "temp debugging stuff") - INFO.NewFlag("INFO", false, full, short, "normal debugging stuff") + NOW = log.NewFlag( "NOW", true, full, short, "temp debugging stuff") + INFO = log.NewFlag("INFO", false, full, short, "normal debugging stuff") - WARN.NewFlag("WARN", true, full, short, "bad things") - SPEW.NewFlag("SPEW", false, full, short, "spew stuff") + WARN = log.NewFlag("WARN", true, full, short, "bad things") + 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") }