You can use UTL_FILE package to write the messages to a file.

skid