public function useFileLogger(string $dir): self
    {
        $this->setLogger(new \BearFramework\App\FileLogger($dir));
        return $this;
    }
public function useFileLogger(string $dir): self
    {
        $this->setLogger(new \BearFramework\App\FileLogger($dir));
        return $this;
    }
public function useFileLogger ( string $ dir ) : self { $ this -> setLogger ( new \ BearFramework \ App \ FileLogger ( $ dir ) ) ; return $ this ; }
Enables a file logger for directory specified.

@param string $dir The directory where the logs will be stored.
@return self Returns a reference to itself.
Enables a file logger for directory specified .