-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ASGI lifetime hooks, to get notified on startup and shutdown. Load the config file on startup and configure the root logger.
- Loading branch information
Showing
4 changed files
with
97 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Hub Configuration | ||
|
||
The *Hub* loads its configuration on startup from | ||
`/etc/not-my-board/not-my-board-hub.toml`. The file format is | ||
[TOML](https://toml.io/en/). | ||
|
||
## Settings | ||
|
||
### `log_level` | ||
|
||
**Type:** String \ | ||
**Required:** No | ||
|
||
Configures the log level. Can be one of `debug`, `info`, `warning` or `error`. | ||
|
||
## Example | ||
|
||
Here's an example of a *Hub* configuration: | ||
```{code-block} toml | ||
:caption: /etc/not-my-board/not-my-board-hub.toml | ||
log_level = "info" | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters