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.
 
 
 

13 lines
471 B

  1. package ghost
  2. import (
  3. "log"
  4. )
  5. // Logging function, defaults to Go's native log.Printf function. The idea to use
  6. // this instead of a *log.Logger struct is that it can be set to any of log.{Printf,Fatalf, Panicf},
  7. // but also to more flexible userland loggers like SeeLog (https://github.com/cihub/seelog).
  8. // It could be set, for example, to SeeLog's Debugf function. Any function with the
  9. // signature func(fmt string, params ...interface{}).
  10. var LogFn = log.Printf