protected function setOrderByField($field)
    {
        $field = strtolower($field);

        $acceptedFields = [
            'id',
            'date',
            'level',
            'environment',
            'file_path'
        ];

        if (in_array($field, $acceptedFields)) {
            $this->orderByField = $field;
        }
    }