Use the stlib logging module.

Name says it all.