try to restore STDOUT

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2024-01-30 11:50:24 -06:00
parent 57b20eb7d0
commit 162d2dd85b
1 changed files with 6 additions and 0 deletions

View File

@ -21,3 +21,9 @@ func SetTmp() {
golanglog.SetOutput(f)
golanglog.Println("This is a test log entry")
}
// start writing all the logging to a tmp file
func UnsetTmp() {
golanglog.SetOutput(os.Stdout)
golanglog.Println("This is a test log entry")
}