Exemplo n.º 1
0
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())
}
Exemplo n.º 2
0
package nsqadmin

import (
	"github.com/absolute8511/nsq/internal/levellogger"
)

var adminLog = levellogger.NewLevelLogger(levellogger.LOG_INFO, &levellogger.GLogger{})
Exemplo n.º 3
0
package nsqd

import (
	"github.com/absolute8511/nsq/internal/levellogger"
)

var nsqLog = levellogger.NewLevelLogger(levellogger.LOG_INFO, &levellogger.GLogger{})

func NsqLogger() *levellogger.LevelLogger {
	return nsqLog
}