-
-
Notifications
You must be signed in to change notification settings - Fork 142
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1234 from FoalTS/add-logger
Add Foal logger and request ID
- Loading branch information
Showing
91 changed files
with
1,685 additions
and
410 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
--- | ||
title: Version 4.1 release notes | ||
author: Loïc Poullain | ||
author_title: Creator of FoalTS. Software engineer. | ||
author_url: https://loicpoullain.com | ||
author_image_url: https://avatars1.githubusercontent.com/u/13604533?v=4 | ||
image: blog/twitter-banners/version-4.1-release-notes.png | ||
tags: [release] | ||
--- | ||
|
||
![Banner](./assets/version-4.1-is-here/banner.png) | ||
|
||
Version 4.1 of [Foal](https://foalts.org/) is out! | ||
|
||
<!--truncate--> | ||
|
||
## Better logging | ||
|
||
Foal now features a true logging system. Full documentation can be found [here](../docs/common/logging). | ||
|
||
### New recommended configuration | ||
|
||
It is recommended to switch to this configuration to take full advantage of the new logging system. | ||
|
||
*config/default.json* | ||
```json | ||
{ | ||
"settings": { | ||
"loggerFormat": "foal" | ||
} | ||
} | ||
``` | ||
|
||
*config/development.json* | ||
```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. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.