Table of Contents 


Datadog is a service that allows − in particular − to centralize the logs of your applications within a single interface. This can be very handy when your web application is spread across multiple servers and it becomes difficult to track multiple log files simultaneously.


In the temma.json configuration file, add the \Temma\LogManagers\Datadog object to the logManager directive.

You must also add an x-datadog extended configuration, with the following keys:

  • url: (required) Datadog API connection URL, depending on the location you chose
    • EU:
    • US:
    • US3:
    • US5:
    • US1-FED:
  • apiKey: (required) Your API key
  • service: (optional) Name of the service (website or application) sending the log

Here is an example configuration:

    "application": {
        "logManager": "\\Temma\\LogManagers\\Datadog"
    "x-datadog": {
        "url": "",
        "apiKey": "...API_KEY...",
        "service": ""


In the Datadog web interface, it is recommended to create two facets:

  • Traceid, which will contain a string of four characters, allowing to identify the logs coming from the same execution.
  • Class, which will contain the log recording class.

You can add these facets as columns in the general monitoring table, this will make reading the log stream more explicit.

Previous: Log managers
Next: Controllers

Table of Contents