# bootstrap

The `bootstrap` directory contains additional PHP files that can be loaded before the application runs. These files can be used to override or extend existing services. Some cases that might be accomplished this way:

* Log directly to a SAAS or self-hosted central log management tool (like Loggly, Logentries, Logstash, ...) instead of log files
* Collect performance metrics of requests to the UiTPAS API

You need to activate additional bootstrap files in in [`config.yml`](https://cultuurnet.gitbook.io/uitpas-beheer-silex/filesystem-layout/config-yml).

Out of the box, there is only one additional bootstrap file `logging.php` which facilitates logging to files in the [`log` ](https://cultuurnet.gitbook.io/uitpas-beheer-silex/filesystem-layout/log) directory.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://cultuurnet.gitbook.io/uitpas-beheer-silex/filesystem-layout/bootstrap.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
