PyScribe icon indicating copy to clipboard operation
PyScribe copied to clipboard

Make it pluggable with the logging module

Open sametmax opened this issue 11 years ago • 2 comments

PyScibe should accept a logger instance so that if you log, it will write to it too. This way, you can use it with software only printing on the console using the logging module.

sametmax avatar Dec 31 '14 07:12 sametmax

To be honest, I don't see the interest of this project if you plug with logging module.

What's the advantage of pyscribe compare to logger.debug() + correct logging configuration ? To be more complicated than logging module ? ;-)

ludovic-gasc avatar Jan 01 '15 23:01 ludovic-gasc

This is actually much simpler than the logging module :

  • logging is actually hard (you have to look at the doc every single time) to use for a beginer if you try to do anything else than print;
  • this does operations you commonly do with print such as looping, pretty printting, putting separators. If you want to do that with logging, you need a custom formater, which is a pain to write.

But it doesn't have to be "this" or "that", you can get both, if you Pyscribe starts providing it's bit to be plugged into the logging module.

Le 02/01/2015 06:44, Ludovic Gasc a écrit :

To be honest, I don't see the interest of this project if you plug with logging module.

What's the advantage of pyscribe compare to logger.debug() + correct logging configuration ? To be more complicated than logging module ? ;-)

— Reply to this email directly or view it on GitHub https://github.com/alixander/PyScribe/issues/1#issuecomment-68502567.

sametmax avatar Jan 02 '15 05:01 sametmax