Configure logging¶
Par défaut, le journalier Flower utilise un niveau de journalisation INFO. Cela peut être modifié via l’environnement variable FLWR_LOG_LEVEL vers tout autre niveau que Python’s logging module supporte. Par exemple, pour lancer votre SuperLink avec des journaux DEBUG, utilisez:
# Launch the SuperLink with TLS (or use --insecure)
FLWR_LOG_LEVEL=DEBUG flower-superlink \
--ssl-ca-certfile certificates/ca.crt \
--ssl-certfile certificates/server.pem \
--ssl-keyfile certificates/server.key
WARNING 2025-08-20 17:13:30,391: DEBUG logs enabled. Do not use this in production, as it may expose sensitive details.
INFO 2025-08-20 17:13:31,360: Starting Flower SuperLink
INFO 2025-08-20 17:13:31,378: Starting the SuperLink Runtime HTTP API on 127.0.0.1:8000.
INFO 2025-08-20 17:13:31,381: Starting the SuperLink Control HTTP API on 127.0.0.1:8000.
INFO 2025-08-20 17:13:31,381: Starting the SuperLink Fleet HTTP API on 127.0.0.1:8000.
DEBUG 2025-08-20 17:13:31,382: Automatic node authentication enabled
WARNING 2025-08-20 17:13:31,515: DEBUG logs enabled. Do not use this in production, as it may expose sensitive details.
INFO 2025-08-20 17:13:32,324: Starting Flower SuperExec
Note
Vous pouvez faire usage de l’environnement variable FLWR_LOG_LEVEL lors de l’exécution d’autres commandes Flower pour provisionner les différents composants dans une fédération Flower (voir Exécuter Flower avec le Deployment Runtime) ou en utilisant le flwr CLI.