mirror of
https://github.com/dunglas/frankenphp
synced 2024-11-23 08:39:21 +00:00
docs(octane): explain how to get structured JSON logs
This commit is contained in:
parent
e864142a7b
commit
cc21b4dfd3
@ -70,6 +70,9 @@ La commande `octane:frankenphp` peut prendre les options suivantes :
|
|||||||
* `--http-redirect` : Activer la redirection HTTP vers HTTPS (uniquement activé si --https est passé)
|
* `--http-redirect` : Activer la redirection HTTP vers HTTPS (uniquement activé si --https est passé)
|
||||||
* `--watch` : Recharger automatiquement le serveur lorsque l'application est modifiée
|
* `--watch` : Recharger automatiquement le serveur lorsque l'application est modifiée
|
||||||
* `--poll` : Utiliser le sondage du système de fichiers pendant la surveillance pour surveiller les fichiers sur un réseau
|
* `--poll` : Utiliser le sondage du système de fichiers pendant la surveillance pour surveiller les fichiers sur un réseau
|
||||||
* `--log-level` : Enregistrer les messages au niveau de journalisation spécifié ou au-dessus
|
* `--log-level` : Enregistrer les messages au niveau de journalisation spécifié ou au-dessus, en utilisant le logger natif de Caddy
|
||||||
|
|
||||||
|
> [!TIP]
|
||||||
|
> Pour obtenir des logs structurés en JSON logs (utile quand vous utilisez des solutions d'analyse de logs), passez explicitement l'otpion `--log-level`.
|
||||||
|
|
||||||
En savoir plus sur Laravel Octane [dans sa documentation officielle](https://laravel.com/docs/octane).
|
En savoir plus sur Laravel Octane [dans sa documentation officielle](https://laravel.com/docs/octane).
|
||||||
|
@ -16,7 +16,7 @@ And enjoy!
|
|||||||
|
|
||||||
Alternatively, you can run your Laravel projects with FrankenPHP from your local machine:
|
Alternatively, you can run your Laravel projects with FrankenPHP from your local machine:
|
||||||
|
|
||||||
1. [Download the binary corresponding to your system](https://github.com/dunglas/frankenphp/releases)
|
1. [Download the binary corresponding to your system](../README.md#standalone-binary)
|
||||||
2. Add the following configuration to a file named `Caddyfile` in the root directory of your Laravel project:
|
2. Add the following configuration to a file named `Caddyfile` in the root directory of your Laravel project:
|
||||||
|
|
||||||
```caddyfile
|
```caddyfile
|
||||||
@ -69,7 +69,10 @@ The `octane:frankenphp` command can take the following options:
|
|||||||
* `--http-redirect`: Enable HTTP to HTTPS redirection (only enabled if --https is passed)
|
* `--http-redirect`: Enable HTTP to HTTPS redirection (only enabled if --https is passed)
|
||||||
* `--watch`: Automatically reload the server when the application is modified
|
* `--watch`: Automatically reload the server when the application is modified
|
||||||
* `--poll`: Use file system polling while watching in order to watch files over a network
|
* `--poll`: Use file system polling while watching in order to watch files over a network
|
||||||
* `--log-level`: Log messages at or above the specified log level
|
* `--log-level`: Log messages at or above the specified log level, using the native Caddy logger
|
||||||
|
|
||||||
|
> [!TIP]
|
||||||
|
> To get structured JSON logs (useful when using log analytics solutions), explicitly the pass `--log-level` option.
|
||||||
|
|
||||||
Learn more about [Laravel Octane in its official documentation](https://laravel.com/docs/octane).
|
Learn more about [Laravel Octane in its official documentation](https://laravel.com/docs/octane).
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user