Aurélien Vallée
04/21/2021, 10:18 AMnicholas
Aurélien Vallée
04/21/2021, 4:44 PMsys.stdout
handler is directly attached to the logger, with a specific formatter. But 99% of the time, people already have a root handler, with their own formatter. This explains why I get duplicated log messages with different formatting.
IMHO, attaching the CloudHandler
should be enough for logs to be properly dispatched to server if the config says so, the extra stream handler interferes with the library user's logging configuration and causes repeated messages since messages are propagated upward to the root handler which will 99% of the time log them again.
Didn't play with the code yet, just my understanding from reading the code so I can be wrong here. Will play with it tomorrow.