Modified logging behavior. Log to file on openshift, otherwise to console.