DB_DataObject::debugLevel (Previous) (Next) DB_DataObject::raiseError

View this page in Last updated: Sun, 24 Aug 2008
English | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Plain HTML

->debug()

->debug() -- output debug information.

Description

Debugger - you can use this in your extended classes to output debugging information. Uses DB_DataObject::DebugLevel(x) to turn it on, and can be completly turned off by using the production setting in the configuration file

Parameter

  • string $message - message to output

  • string $logPrefix - A bold prefix string

  • integer $level - output level, 1 is general, 5 tends to reveal things like database connection passwords..

Note

This function can not be called statically.

Warning

In production mode, the debugger is disabled

DB_DataObject::debugLevel (Previous) (Next) DB_DataObject::raiseError

Download Documentation Last updated: Sun, 24 Aug 2008
Do you think that something on this page is wrong? Please file a bug report or add a note.
User Notes:
Note by: pierre2543@hotmail.com
To send debug messages to a function you define instead of being printed.

In your configuration set debug to something callable. For example: debug='myDOdebugFunction'

And define the function:
function myDOdebugFunction($class, $message, $logtype, $level){
sendToLogs(...);
}