Enable logging by default

This commit is contained in:
Matt Brubeck 2020-12-22 17:42:23 -08:00
parent 7a117f3a47
commit a2f6f5932f
2 changed files with 7 additions and 8 deletions

View file

@ -42,12 +42,6 @@ All of the command-line arguments are optional. Run `agate --help` to see the d
When a client requests the URL `gemini://example.com/foo/bar`, Agate will respond with the file at `path/to/content/foo/bar`. If there is a directory at that path, Agate will look for a file named `index.gmi` inside that directory.
To enable console logging, set a log level via the `AGATE_LOG` environment variable. Logging is powered by the [env_logger crate](https://crates.io/crates/env_logger):
```
AGATE_LOG=info agate --content path/to/content/
```
[Gemini]: https://gemini.circumlunar.space/
[Rust]: https://www.rust-lang.org/
[home]: gemini://gem.limpet.net/agate/