logger.go 350 B

12345678910111213141516171819
  1. package nsqlookupd
  2. import (
  3. "github.com/nsqio/nsq/internal/lg"
  4. )
  5. type Logger lg.Logger
  6. const (
  7. LOG_DEBUG = lg.DEBUG
  8. LOG_INFO = lg.INFO
  9. LOG_WARN = lg.WARN
  10. LOG_ERROR = lg.ERROR
  11. LOG_FATAL = lg.FATAL
  12. )
  13. func (n *NSQLookupd) logf(level lg.LogLevel, f string, args ...interface{}) {
  14. lg.Logf(n.opts.Logger, n.opts.LogLevel, level, f, args...)
  15. }