Version 4.1 release notes
· Lectura de un minuto
Version 4.1 of Foal is out!
Better logging
Foal now features a true logging system. Full documentation can be found here.
New recommended configuration
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
.