chore: improve logging

This commit is contained in:
David Germain
2024-06-07 17:44:02 +02:00
committed by benfurber
parent 8b9f428efc
commit 001387a7dd
7 changed files with 13 additions and 6 deletions

View File

@@ -11,9 +11,9 @@ services:
volumes:
- ./functions:/app/functions
- ./functions/data/emulator/:/seed
# TODO: make logs easily viewable on the host machine.
# - ./logs/ui-debug.log:/app/ui-debug.log
# - ./logs/firestore-debug.log:/app/firestore-debug.log
# - ./logs/database-debug.log:/app/database-debug.log
# - ./logs/pubsub-debug.log:/app/pubsub-debug.log
# - ./logs/firebase-debug.log:/app/firebase-debug.log
- ./functions/logs/database-debug.log:/app/database-debug.log
- ./functions/logs/firebase-debug.log:/app/firebase-debug.log
- ./functions/logs/firestore-debug.log:/app/firestore-debug.log
- ./functions/logs/pubsub-debug.log:/app/pubsub-debug.log
- ./functions/logs/ui-debug.log:/app/ui-debug.log

7
functions/logs/README.md Normal file
View File

@@ -0,0 +1,7 @@
The files in this folder must exist in order to be able to mount with the file inside of Docker containers.
https://stackoverflow.com/a/64821508
These files should be initally check into Git but ignored for changes.
https://stackoverflow.com/a/17410119

View File

View File

View File

View File

View File