Пример #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
}
Пример #2
0
func (km *KMonitor) initLog() error {
	return logger.Init(km.config.bc.logDir, "kmonitor", logger.LogLevel(km.config.bc.logLevel))
}
Пример #3
0
func (kp *KProxy) initLog() error {
	return logger.Init(kp.config.logDir, "kproxy", logger.LogLevel(kp.config.logLevel))
}
Пример #4
0
func (d *Deleter) initLog() (err error) {
	err = logger.Init(d.logDir, "cachedeleter", logger.LogLevel(d.logLevel))
	return
}
Пример #5
0
func (bs *BinStore) initLogger() error {
	sarama.Logger = newSaramaLogger()
	err := logger.Init(bs.config.logDir, "binstore", logger.LogLevel(bs.config.logLevel))
	return err
}