tusd/cmd/tusd/cli/log.go

16 lines
330 B
Go

package cli
import (
"log"
"os"
"github.com/tus/tusd/pkg/handler"
)
var stdout = log.New(os.Stdout, "[tusd] ", log.Ldate|log.Ltime)
var stderr = log.New(os.Stderr, "[tusd] ", log.Ldate|log.Ltime)
func logEv(logOutput *log.Logger, eventName string, details ...string) {
handler.LogEvent(logOutput, eventName, details...)
}