Did you write a logging package? Does that package allow you to write to file with utl_file? You should think about having a logging package.

In the mean time send less output to dbms_output.