mirror of
https://github.com/YGGverse/agate.git
synced 2026-04-09 04:55:27 +00:00
Add some simple logging via the env_logger crate
This commit is contained in:
parent
d13c98d614
commit
b33417198c
4 changed files with 99 additions and 2 deletions
|
|
@ -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/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue