writeLog() writeLog( $action, $process, $record, $uname) Writes a log to the log table in the database. Parameters $action $process $record $uname