public function setConnection($connection) { $this->logger = new Logger($connection, 'my-log', 'my-awesome-project'); }