diff options
| author | Jeff Carr <[email protected]> | 2023-03-26 17:19:20 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2023-03-26 17:19:20 -0500 |
| commit | 6013fde8332e8ecbffaf1a0977ba2e1da8ea8775 (patch) | |
| tree | 3f9ccd75e8699974f3412fdd79a20173672c19c2 /log/log.go | |
| parent | 6f91f5e080e06cdc0f34b13d23e5fd16ea37259a (diff) | |
improvements towards a working dns control panel
democui has the help menu
try to add mouse support to gocui
make a direct access method
Margin() and Pad() tests
add SPEW
also push devel branch to github
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'log/log.go')
| -rw-r--r-- | log/log.go | 17 |
1 files changed, 12 insertions, 5 deletions
@@ -29,17 +29,24 @@ import ( // "net" ) +// various debugging flags +var LogNow bool = true // useful for active development +var LogError bool = true +var LogWarn bool = false +var LogInfo bool = false +var LogVerbose bool = false +var LogSleep bool = false + var LOGOFF bool = false // turn this off, all logging stops var debugToolkit bool = false // does spew stuff? var Where string = "gui/log" -type spewt struct { +type Spewt struct { a bool } -var SPEW spewt - +var SPEW Spewt /* sleep() # you know what this does? sleeps for 1 second. yep. dump. easy. @@ -51,7 +58,7 @@ func Sleep(a ...any) { return } - Log(true, "sleep", a[0]) + Log(LogSleep, "sleep", a[0]) switch a[0].(type) { case int: @@ -69,7 +76,7 @@ func Sleep(a ...any) { exit("dont like apples") # ok. I'll make a note of that */ func Exit(a ...any) { - Log(true, "exit", a) + Log(LogError, "exit", a) //if (a) { // os.Exit(a) //} |
