From ff3ab373547318946eaddb2593eedc3eaf8a22a2 Mon Sep 17 00:00:00 2001 From: curquiza Date: Tue, 3 Jan 2023 16:57:23 +0100 Subject: [PATCH] Add `OFF` log level to spec --- text/0033-logging.md | 3 ++- text/0119-instance-options.md | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/text/0033-logging.md b/text/0033-logging.md index e9fc2739..7c7a10cf 100644 --- a/text/0033-logging.md +++ b/text/0033-logging.md @@ -138,6 +138,7 @@ Instead of using `RUST_LOG`, we create a `MEILI_LOG_LEVEL` environment variable | INFO | Default Log Level. It displays high level informations of events occuring in the search engine. | | DEBUG | Used for debugging and development purposes. More verbose than INFO. | | TRACE | Display everything happening at engine level. Can be useful for rust developers dealing with complex issues | +| OFF | Disable the logs. | ##### Log Format @@ -149,7 +150,7 @@ Instead of using `RUST_LOG`, we create a `MEILI_LOG_LEVEL` environment variable ###### Mandatory log format part. E.g [TIME_FORMAT LOG_LEVEL MODULE] part. - Time when the request was started to process (in rfc3339 format) -- Log levels are `ERROR`, `WARN`, `INFO`, `DEBUG`, `TRACE`. +- Log levels are `ERROR`, `WARN`, `INFO`, `DEBUG`, `TRACE`, `OFF`. - The module part gives information about the module that records the log. ###### HTTP Call diff --git a/text/0119-instance-options.md b/text/0119-instance-options.md index efae23c1..99d93735 100644 --- a/text/0119-instance-options.md +++ b/text/0119-instance-options.md @@ -239,7 +239,7 @@ More information in this [section of the spec](https://github.com/meilisearch/sp **Environment variable**: `MEILI_LOG_LEVEL` **CLI option**: `--log-level` **Default value**: `'INFO'` -**Expected value**: one of `ERROR`, `WARN`, `INFO`, `DEBUG`, OR `TRACE` +**Expected value**: one of `ERROR`, `WARN`, `INFO`, `DEBUG`, `TRACE`, or `OFF` Defines how much detail should be present in Meilisearch's logs.