本站源代码
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.

16 lines
188B

  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. }
上海开阖软件有限公司 沪ICP备12045867号-1