How to write a log file for a Procedure
I have written a stored procedure and used dbms_output to print the object_ids on sql*plus. Now instead of using dbms_output, I want to use log file. Like when I open the procedure, it should open a log file in writing mode and then keep writing there for each messages. This is basically required since the procedure actually inserting bulk data into various tables. So log file will help me to identify the errors etc.
Appreciate your help please!
Regards,
Saurav