performer::on_print
This is useful primarily to determine the source location, but can also be used for any other purpose.