Can now enable logging to file or just to console.