Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

Add OFF log level to spec #211

Merged
merged 1 commit into from
Feb 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion text/0033-logging.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion text/0119-instance-options.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down