optional parameter $trace to Log() added