(Nothing surfaced in DBI.pm or the TODO list, nor the usual
net searches, so...)

Has there been any thought to extending the target for
trace() beyond simple filenames ? I'm looking for a means
to supply either a coderef, or maybe an object implementing
a simple print/write interface. My need is to be able to direct
the traces to a centrally managed logging facility, and be able
to turn them off/on as needed, e.g:

my $logger = MyFancyLogger->new();

DBI->trace(2, sub { $logger->logInfo("DBI trace: " . $_[0]); });

I realize the tracing is currently buried in XS code, but
it appears the HandleError invokation code could be copied
to provide the ability.

Has this been discussed before, or have I overlooked something that already
exists ? It seems like a capability that would be useful.

Dean Arnold
Presicient Corp.

Reply via email to