assuming your app is ABC, then all file errors go through the ErrorClass so you could trap them and log them there...
If you're using Legacy, then I guess it all depends on what sort of errors you are trying to trap. (For example "next" record-fails are expected...)
cheers
Bruce