On Thu, Mar 22, 2001 at 08:04:35AM -0700, Sterin, Ilya wrote:
> Just a question, what are you using trace() for. It is mostly used for
> debugging, but in your case it sounds like it will be executed every
> time the program runs and keep appending to the file? What are you
> trying to achieve if that is true.
Generally I do use trace for debugging only, and turn it off when the
program hits production.
However this question came up during a DBI course that I was teaching.
One of the students wanted to keep an ongoing tracelog of his program's
DBI interactions. Perhaps he would be better off coding a customized
trace routine for a more concise log. It might be nice for the DBI to
allow the user to register a callback from trace() to customize the
output written to the log.
-C.
p.s. you may read about my DBI course at: http://consultix-inc.com/