Skip to content

Commit

Permalink
chore: add warning about enabling logs in production to docs (#776)
Browse files Browse the repository at this point in the history
  • Loading branch information
Siddhant-K-code committed Jun 26, 2024
1 parent 2a394c7 commit f54ef4c
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,10 @@ OpenFGA generates structured logs by default, and it can be configured with the
- `--log-format`: sets the log format. Today we support `text` and `json` format.
- `--log-level`: sets the minimum log level (defaults to `info`). It can be set to `none` to turn off logging.

:::caution Warning
It is highly recommended to enable logging in production environments. Disabling logging (`--log-level=none`) can mask important operations and hinder the ability to detect and diagnose issues, including potential security incidents. Ensure that logs are enabled and properly monitored to maintain visibility into the application's behavior and security.
:::

## Related Sections

<RelatedSection
Expand All @@ -331,4 +335,4 @@ OpenFGA generates structured logs by default, and it can be configured with the
id: './running-in-production',
}
]}
/>
/>

0 comments on commit f54ef4c

Please sign in to comment.