Can now write to console or file or both.