Log errors to separate file