mirror of
https://github.com/eduardolat/pgbackweb.git
synced 2026-02-11 14:48:35 -06:00
13 lines
315 B
Go
13 lines
315 B
Go
package logger
|
|
|
|
import "os"
|
|
|
|
// logWriter is a simple io.Writer that can redirect logs to os.Stdout
|
|
// or any other required place
|
|
type logWriter struct{}
|
|
|
|
// Write writes the log message to os.Stdout or any other required place
|
|
func (w *logWriter) Write(p []byte) (n int, err error) {
|
|
return os.Stdout.Write(p)
|
|
}
|