Print to log

Python pattern

Rewrite print statements using log.


Apply with the Grit CLI
grit apply print_to_log

Transforms a log statement

BEFORE
print("hello world!")
log("this is python")
AFTER
log("hello world!")
log("this is python")