Change logging function name from log to logfn.  Fixes issue with PGI compile