Add gologtestoutput

This commit is contained in:
rwxrob 2022-03-09 23:22:33 -05:00
parent c2a0b84a05
commit 06b9a0665f
No known key found for this signature in database
GPG Key ID: 2B9111F33082AE77

9
scripts/gologtestoutput Executable file
View File

@ -0,0 +1,9 @@
#!/usr/bin/env bash
echo '
// adjust log output for testing
log.SetOutput(os.Stdout)
log.SetFlags(0)
defer log.SetOutput(os.Stderr)
defer log.SetFlags(log.Flags())
'