2

How can one buffer verbose logging statements (i.e. logging.debug("...")) until the end of a python process? Would this require a custom logger?

My current setup uses a config file similar to Scott's

(Windows Python2.7)

Community
  • 1
  • 1
  • If you want to buffer all of the debug logging, you would need some sort of custom implementation. – eandersson Jun 01 '16 at 22:23
  • Buffering causes other problems if you have a lot of logging, so why not just redirect to a file? – solidpixel Jun 01 '16 at 22:25
  • unfortunately, my logging has to occur after I write to a [lab streaming layer](https://github.com/sccn/labstreaminglayer) network.. logging to a file interferes with this communication. timing out for just under a half second avoids this problem, but isn't desireable in time sensitive applications – boogie_bullfrog Jun 01 '16 at 22:27

0 Answers0