Saltar al contenido principal

Version 4.1 release notes

· Lectura de un minuto
Loïc Poullain
Creator of FoalTS. Software engineer.

Banner

Version 4.1 of Foal is out!

Better logging

Foal now features a true logging system. Full documentation can be found here.

It is recommended to switch to this configuration to take full advantage of the new logging system.

config/default.json

{
"settings": {
"loggerFormat": "foal"
}
}

config/development.json

{
"settings": {
"logger": {
"format": "dev"
}
}
}

Request IDs

On each request, a request ID is now generated randomly. It can be read through ctx.request.id.

If the X-Request-ID header exists in the request, then the header value is used as the request identifier.

XML requests

If a request is sent with the application/xml header, the XML content is now available under ctx.request.body.