package consistence import ( "github.com/absolute8511/nsq/internal/levellogger" ) var coordLog = levellogger.NewLevelLogger(levellogger.LOG_INFO, nil) func SetCoordLogger(log levellogger.Logger, level int32) { coordLog.Logger = log coordLog.SetLevel(level) SetEtcdLogger(log, level) } func SetCoordLogLevel(level int32) { coordLog.SetLevel(level) } func init() { SetEtcdLogger(coordLog.Logger, coordLog.Level()) }
package nsqadmin import ( "github.com/absolute8511/nsq/internal/levellogger" ) var adminLog = levellogger.NewLevelLogger(levellogger.LOG_INFO, &levellogger.GLogger{})
package nsqd import ( "github.com/absolute8511/nsq/internal/levellogger" ) var nsqLog = levellogger.NewLevelLogger(levellogger.LOG_INFO, &levellogger.GLogger{}) func NsqLogger() *levellogger.LevelLogger { return nsqLog }