Easy error logging for C