Not sure about your system log issue. But your other error is caused by the fact that you can't update a field on the object with an after trigger, you need to use a before trigger. Also, you need to make your trigger bulk safe. It should handle multiple records being processed in one step.