aboutsummaryrefslogtreecommitdiff
path: root/log.go
diff options
context:
space:
mode:
Diffstat (limited to 'log.go')
-rw-r--r--log.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/log.go b/log.go
index 2e16a73..bf8d68a 100644
--- a/log.go
+++ b/log.go
@@ -10,6 +10,8 @@ type LogWriter struct {
f *os.File
}
+// Write writes the input data to os.Stderr and the log file.
+// It returns the number of bytes written and an error.
func (lw *LogWriter) Write(p []byte) (n int, err error) {
n, err = os.Stderr.Write(p)
if err != nil {