Debugging/trace output control. Allows redirection to different filehandle, more...
[dbsrgits/DBIx-Class.git] / lib / DBIx / Class / Manual / Troubleshooting.pod
index 41f55ff..6d7dc86 100644 (file)
@@ -15,6 +15,13 @@ Alternatively use the C<storage->debug> class method:-
 
   $class->storage->debug(1);
 
+To send the output somewhere else set debugfh:-
+
+  $class->storage->debugfh(IO::File->new('/tmp/trace.out', 'w');
+
+Alternatively you can do this with the environment variable too:-
+
+  export DBIX_CLASS_STORAGE_DBI_DEBUG="1=/tmp/trace.out"
 
 =cut