Logfile is now global for the time being.

A global pointer is fine. Global variables are not.