Home : Documentation : DBIx::Recordset
Google Web perl.apache.org

 
Home
 
Features
 
Introduction
 
Documentation
 
README
 
README.v2
 
Configuration
 
Embperl
 
Embperl::Object
 
Embperl::Form::Validate
 
Embperl::Syntax
 
Embperl::Recipe
 
Embperl::Mail
 
1.3.6 documentation
 
DBIx::Recordset
 
Installation
 
Download
 
Support
 
Changes
 
Wiki
 
More infos
 
Add info about Embperl
 
Login

    Stable 2.4.0
    Beta 2.5.0_3
Support the development of Embperl! More...
DEBUGGING
[ << Prev: FETCHSIZE / $FetchsizeWarn ] [ Content ] [ Next: SECURITY >> ]

DBIx::Recordset is able to write a logfile so you can see what's happening inside. There are two public variables and the !Debug parameter used for this purpose:

 

$DBIx::Recordset::Debug or !Debug

 

Debuglevel 0 = off 1 = log only errors 2 = show connect, disconnect and SQL Statements 3 = some more infos 4 = much infos

$DBIx::Recordset::Debug sets the default debug level for new objects, !Debug can be used to set the debuglevel on a per object basis.

 

DBIx::Recordset::LOG

 

The filehandle used for logging. The default is STDOUT, unless you are running under HTML::Embperl, in which case the default is the Embperl logfile.

 Example:

    # open the log file
    open LOG, ">test.log" or die "Cannot open test.log" ; 

    # assign filehandle
    *DBIx::Recordset::LOG = \*LOG ; 
    
    # set debugging level
    $DBIx::Recordset::Debug = 2 ; 

    # now you can create a new DBIx::Recordset object

[ << Prev: FETCHSIZE / $FetchsizeWarn ] [ Content ] [ Next: SECURITY >> ]

© 1997-2012 Gerald Richter / ecos gmbh