Documentation
¶
Index ¶
- Variables
- func CatchAndLogPanic()
- func LogReadWriteCloserAs(upstream io.ReadWriteCloser, filename string) io.ReadWriteCloser
- func LogReadWriteCloserToFile(upstream io.ReadWriteCloser, file *os.File) io.ReadWriteCloser
- func NewReadWriteCloser(in io.ReadCloser, out io.WriteCloser) io.ReadWriteCloser
- func OpenLogFileAs(filename string) *os.File
Constants ¶
This section is empty.
Variables ¶
var GlobalLogDirectory *paths.Path
GlobalLogDirectory is the directory where logs are created
Functions ¶
func CatchAndLogPanic ¶
func CatchAndLogPanic()
CatchAndLogPanic will recover a panic, log it on standard logger, and rethrow it to continue stack unwinding.
func LogReadWriteCloserAs ¶
func LogReadWriteCloserAs(upstream io.ReadWriteCloser, filename string) io.ReadWriteCloser
LogReadWriteCloserAs return a proxy for the given upstream io.ReadWriteCloser that forward and logs all read/write/close operations on the given filename that is created in the GlobalLogDirectory.
func LogReadWriteCloserToFile ¶
func LogReadWriteCloserToFile(upstream io.ReadWriteCloser, file *os.File) io.ReadWriteCloser
LogReadWriteCloserToFile return a proxy for the given upstream io.ReadWriteCloser that forward and logs all read/write/close operations on the given file.
func NewReadWriteCloser ¶
func NewReadWriteCloser(in io.ReadCloser, out io.WriteCloser) io.ReadWriteCloser
NewReadWriteCloser create an io.ReadWriteCloser from given io.ReadCloser and io.WriteCloser.
func OpenLogFileAs ¶
OpenLogFileAs creates a log file in GlobalLogDirectory.
Types ¶
This section is empty.