Example #1
0
func (transfer *KTransfer) initLog() (err error) {
	err = logger.Init(transfer.logDir, "ktransfer", logger.LogLevel(transfer.logLevel))
	if err != nil {
		return
	}
	sarama.Logger = newSaramaLogger()
	return
}
Example #2
0
func (km *KMonitor) initLog() error {
	return logger.Init(km.config.bc.logDir, "kmonitor", logger.LogLevel(km.config.bc.logLevel))
}
Example #3
0
func (kp *KProxy) initLog() error {
	return logger.Init(kp.config.logDir, "kproxy", logger.LogLevel(kp.config.logLevel))
}
Example #4
0
func (d *Deleter) initLog() (err error) {
	err = logger.Init(d.logDir, "cachedeleter", logger.LogLevel(d.logLevel))
	return
}
Example #5
0
func (bs *BinStore) initLogger() error {
	sarama.Logger = newSaramaLogger()
	err := logger.Init(bs.config.logDir, "binstore", logger.LogLevel(bs.config.logLevel))
	return err
}