Open henryiii opened 4 years ago
Since you're using standard Python logging, which has the rollover built-in, wouldn't it also have a "compress rolled over logs" option somewhere? Just thinking out loud.
Isn’t that the recipe from the python docs I linked to?
Indeed it is! Thinking out loud without clicking on the link to get better context of what people are talking about—that's what I was doing.
At least the email I received didn’t have the link:)
On May 18, 2020, at 6:01 PM, Jim Pivarski notifications@github.com<mailto:notifications@github.com> wrote:
Indeed it is! Thinking out loud without clicking on the link to get better context of what people are talking about—that's what I was doing.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/Princeton-Penn-Vents/princeton-penn-flowmeter/issues/41#issuecomment-630279510, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABGPFQZBRFV4UFMEG7ENKTTRSFLW7ANCNFSM4NEDVJBA.
We need to make sure the data keeps working as it fills up. We need to zip if possible, and we should overwrite eventually, and we probably should cycle every so often.
Ideas: write to zip file directly, use something like this for the log files: https://docs.python.org/3/howto/logging-cookbook.html#using-a-rotator-and-namer-to-customize-log-rotation-processing