try to restore STDOUT
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
57b20eb7d0
commit
162d2dd85b
|
@ -21,3 +21,9 @@ func SetTmp() {
|
||||||
golanglog.SetOutput(f)
|
golanglog.SetOutput(f)
|
||||||
golanglog.Println("This is a test log entry")
|
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")
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue