Printout
printout is a simple Python library that enhances the built-in print function with automatic logging.
Features
- Drop-in replacement for
print - Optionally log to a specified file
- Defaults to
scriptname_log.login the current directory
Installation
pip install printout
Example
import printout
printout("Log this to the default file")
printout("Log this to a custom file", "mylog.txt")
printout("Log this to a nother file if you want", "error_log.txt")