diff options
| author | Jeff Carr <[email protected]> | 2024-01-30 11:50:24 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-01-30 11:50:24 -0600 |
| commit | 162d2dd85b94e6bdb1dbcecc00d6dccd63b9674f (patch) | |
| tree | c5e5561f99afa07663be3c58969193f1f5612d41 /output.go | |
| parent | 57b20eb7d048ce0b94914b0a87e3f989f83070dc (diff) | |
try to restore STDOUT
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'output.go')
| -rw-r--r-- | output.go | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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") +} |
