reubano / pygogo

A Python logging library with superpowers
MIT License
281 stars 20 forks source link

Request: Add log rotation for file_hdlr #5

Closed AndydeCleyre closed 7 years ago

AndydeCleyre commented 8 years ago

A welcome feature would be built-in log rotation for the file handler, enabled via kwarg for max file size, and maybe another kwarg for the number of old/rotated logs to keep around.

Would you consider that in scope for this project?

reubano commented 8 years ago

pygogo is designed to work with the built-in python logging handlers, so you should be able to use the native RotatingFileHandler without much trouble like in this example. Can you give it a shot and let me know if run into any problems?

reubano commented 7 years ago

Closing for now. If my suggestion isn't suitable, feel free to reopen.