Is it possible to write output to console and/or file?

Sometimes we need to inform our customers what we have done: like “x records updated” or “value of x moved to value y”. Is there a way we can generate this output to the console and/or file? We would like to have both possibilities.

Note: we are using an Oracle database