Use a proper logging package.