mirror of
https://github.com/denisidoro/navi
synced 2024-11-22 03:23:05 +00:00
2026b708cf
and add a description on logging
37 lines
751 B
Markdown
37 lines
751 B
Markdown
## Config file
|
|
|
|
- [Example](#example)
|
|
- [Location](#location)
|
|
- [Creating the file](#creating-the-file)
|
|
|
|
### Example
|
|
|
|
An example config can be found by running:
|
|
|
|
```sh
|
|
navi info config-example
|
|
```
|
|
|
|
You can also read it online by clicking [here](./config_file_example.yaml).
|
|
|
|
### Location
|
|
|
|
Run the following command to check where the config file is/should be located:
|
|
|
|
```sh
|
|
navi info config-path
|
|
```
|
|
|
|
### Creating the file
|
|
|
|
Run the following command to generate a config file with the default parameters:
|
|
|
|
```sh
|
|
navi info config-example > "$(navi info config-path)"
|
|
```
|
|
|
|
### Logging
|
|
|
|
The log file will be created under the same directory where the config locates.
|
|
|
|
And you can use the `RUST_LOG` env to set the log level, e.g. `RUST_LOG=debug navi`.
|