Add the following methods to app/AppKernel.php (AppKernel extends Kernel) making them return your preferred paths:

public function getCacheDir() {
  return $this->rootDir . '/my_cache/' . $this->environment;
}

public function getLogDir() {
  return $this->rootDir . '/my_logs';
}