You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

log.go 188B

123456789101112131415
  1. package internal
  2. import (
  3. "fmt"
  4. "log"
  5. )
  6. var Logger *log.Logger
  7. func Logf(s string, args ...interface{}) {
  8. if Logger == nil {
  9. return
  10. }
  11. Logger.Output(2, fmt.Sprintf(s, args...))
  12. }