granian logging via json and rich

This commit is contained in:
Jakub Miazek
2024-08-17 20:22:35 +02:00
parent 12ab5eb652
commit b62d3d4770
5 changed files with 72 additions and 58 deletions

View File

@@ -5,7 +5,7 @@ services:
env_file:
- .env
- .secrets
command: granian --interface asgi --host 0.0.0.0 --port 8080 --loop uvloop app.main:app --log-level debug --log-config ./logging-config.json
command: granian --interface asgi --host 0.0.0.0 --port 8080 --loop uvloop app.main:app --access-log --log-level debug --log-config ./logging-granian.json
volumes:
- .:/home/code
ports: