Browse Source

docs(octane): explain how to get structured JSON logs

Kévin Dunglas 4 months ago
parent
commit
cc21b4dfd3
2 changed files with 9 additions and 3 deletions
  1. 4 1
      docs/fr/laravel.md
  2. 5 2
      docs/laravel.md

+ 4 - 1
docs/fr/laravel.md

@@ -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é)
 * `--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
-* `--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).

+ 5 - 2
docs/laravel.md

@@ -16,7 +16,7 @@ And enjoy!
 
 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:
 
     ```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)
 * `--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
-* `--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).