Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CaptureStdoutToTraceLog ¶ added in v0.97.1
func CaptureStdoutToTraceLog() func()
CaptureStdoutToTraceLog replaces stdout and redirects output to the log as trace lines. The return value is a function, which is used to stop the current capturing of output and restore the original file. Example:
restore := CaptureStdoutToTraceLog() // here, stdout will be captured and redirected to the provided writer restore() // block until the output has all been sent to the writer and restore the original stdout
Types ¶
Click to show internal directories.
Click to hide internal directories.