Write crashlog for appcontroller