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) } }
func (l *WAL) WithLogger(log zap.Logger) { l.logger = log.With(zap.String("service", "wal")) if l.traceLogging { l.traceLogger = l.logger } }
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 } }
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) }
func (s *Service) WithLogger(log zap.Logger) { s.logger = log.With(zap.String("service", "admin")) }
func (m *Monitor) WithLogger(log zap.Logger) { m.Logger = log.With(zap.String("service", "monitor")) }
func (s *Service) WithLogger(log zap.Logger) { s.logger = log.With( zap.String("service", "graphite"), zap.String("addr", s.bindAddress), ) }
// 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 }
func (s *Service) WithLogger(log zap.Logger) { s.Logger = log.With(zap.String("service", "opentsdb")) }
// 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 }
func (s *Service) WithLogger(log zap.Logger) { s.Logger = log.With(zap.String("service", "subscriber")) }
func (c *Client) WithLogger(log zap.Logger) { c.mu.Lock() defer c.mu.Unlock() c.logger = log.With(zap.String("service", "metaclient")) }
func (cl *CacheLoader) WithLogger(log zap.Logger) { cl.Logger = log.With(zap.String("service", "cacheloader")) }
func (s *Service) WithLogger(log zap.Logger) { s.Logger = log.With(zap.String("service", "snapshot")) }
func (s *Service) WithLogger(log zap.Logger) { s.Logger = log.With(zap.String("service", "collectd")) }
func (w *PointsWriter) WithLogger(log zap.Logger) { w.Logger = log.With(zap.String("service", "write")) }
func (s *Service) WithLogger(log zap.Logger) { s.Logger = log.With(zap.String("service", "shard-precreation")) }
func (s *Service) WithLogger(log zap.Logger) { s.Logger = log.With(zap.String("service", "continuous_querier")) }