code: func (e *Engine) WithLogger(log *zap.Logger) {
  	fields := []zap.Field{}
  	if e.nodeID != nil {
  		fields = append(fields, zap.Int("node_id", *e.nodeID))
  	}
  
  	if e.engineID != nil {
  		fields = append(fields, zap.Int("engine_id", *e.engineID))
  	}
  	fields = append(fields, zap.String("service", "storage-engine"))
  
  	e.logger = log.With(fields...)
  	e.sfile.WithLogger(e.logger)
  	e.index.WithLogger(e.logger)
  	e.engine.WithLogger(e.logger)
  	e.retentionEnforcer.WithLogger(e.logger)
  }
docs: // WithLogger sets the logger on the Store. It must be called before Open.