Add some simple logging via the env_logger crate

This commit is contained in:
Tronje Krabbe 2020-11-09 16:52:46 +01:00
parent d13c98d614
commit b33417198c
4 changed files with 99 additions and 2 deletions

View file

@ -35,6 +35,12 @@ agate 0.0.0.0:1965 path/to/content/ cert.pem key.rsa
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.
Optionally, 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 0.0.0.0:1965 path/to.content/ cert.pem key.rsa
```
[Gemini]: https://gemini.circumlunar.space/
[Rust]: https://www.rust-lang.org/
[home]: gemini://gem.limpet.net/agate/