public function init($parameters)
    {
        if (!empty($parameters["app_root"])) {
            $this->app_root = $parameters["app_root"];
        }
        
        if (empty($parameters["log_path"])) {
            throw new \Exception("Log path is not specified!");
        }
        
        $this->log_path = $parameters["log_path"];
        
        $file = $this->log_path . "trace.log";
        
        if (!file_exists($this->log_path) || !is_writable($this->log_path) || (file_exists($file) && !is_writable($file))) {
            throw new \Exception(sprintf("The trace file '%s' is not writable!", $file));
        }
        
        return true;
    }