Esempio n. 1
0
func (s *Store) WithLogger(log zap.Logger) {
	s.baseLogger = log
	s.Logger = log.With(zap.String("service", "store"))
	for _, sh := range s.shards {
		sh.WithLogger(s.baseLogger)
	}
}
Esempio n. 2
0
func (l *WAL) WithLogger(log zap.Logger) {
	l.logger = log.With(zap.String("service", "wal"))

	if l.traceLogging {
		l.traceLogger = l.logger
	}
}
Esempio n. 3
0
func (f *FileStore) WithLogger(log zap.Logger) {
	f.logger = log.With(zap.String("service", "filestore"))
	f.purger.logger = f.logger

	if f.traceLogging {
		f.traceLogger = f.logger
	}
}
Esempio n. 4
0
func (e *Engine) WithLogger(log zap.Logger) {
	e.logger = log.With(zap.String("engine", "tsm1"))

	if e.traceLogging {
		e.traceLogger = e.logger
	}

	e.WAL.WithLogger(e.logger)
	e.FileStore.WithLogger(e.logger)
}
Esempio n. 5
0
func (s *Service) WithLogger(log zap.Logger) {
	s.logger = log.With(zap.String("service", "admin"))
}
Esempio n. 6
0
func (m *Monitor) WithLogger(log zap.Logger) {
	m.Logger = log.With(zap.String("service", "monitor"))
}
Esempio n. 7
0
func (s *Service) WithLogger(log zap.Logger) {
	s.logger = log.With(
		zap.String("service", "graphite"),
		zap.String("addr", s.bindAddress),
	)
}
Esempio n. 8
0
// SetLogOutput sets the writer to which all logs are written. It must not be
// called after Open is called.
func (e *QueryExecutor) WithLogger(log zap.Logger) {
	e.Logger = log.With(zap.String("service", "query"))
	e.TaskManager.Logger = e.Logger
}
Esempio n. 9
0
func (s *Service) WithLogger(log zap.Logger) {
	s.Logger = log.With(zap.String("service", "opentsdb"))
}
Esempio n. 10
0
// SetLogOutput sets the writer to which all logs are written. It must not be
// called after Open is called.
func (s *Service) WithLogger(log zap.Logger) {
	s.Logger = log.With(zap.String("service", "httpd"))
	s.Handler.Logger = s.Logger
}
Esempio n. 11
0
func (s *Service) WithLogger(log zap.Logger) {
	s.Logger = log.With(zap.String("service", "subscriber"))
}
Esempio n. 12
0
func (c *Client) WithLogger(log zap.Logger) {
	c.mu.Lock()
	defer c.mu.Unlock()
	c.logger = log.With(zap.String("service", "metaclient"))
}
Esempio n. 13
0
func (cl *CacheLoader) WithLogger(log zap.Logger) {
	cl.Logger = log.With(zap.String("service", "cacheloader"))
}
Esempio n. 14
0
func (s *Service) WithLogger(log zap.Logger) {
	s.Logger = log.With(zap.String("service", "snapshot"))
}
Esempio n. 15
0
func (s *Service) WithLogger(log zap.Logger) {
	s.Logger = log.With(zap.String("service", "collectd"))
}
Esempio n. 16
0
func (w *PointsWriter) WithLogger(log zap.Logger) {
	w.Logger = log.With(zap.String("service", "write"))
}
Esempio n. 17
0
func (s *Service) WithLogger(log zap.Logger) {
	s.Logger = log.With(zap.String("service", "shard-precreation"))
}
Esempio n. 18
-1
func (s *Service) WithLogger(log zap.Logger) {
	s.Logger = log.With(zap.String("service", "continuous_querier"))
}