Class Debug
Debug logger. A special logger for debugging purposes. Provides debugging logging functions for RedBeanPHP.
- RedBeanPHP\Logger\RDefault implements RedBeanPHP\Logger
- RedBeanPHP\Logger\RDefault\Debug implements RedBeanPHP\Logger
Namespace: RedBeanPHP\Logger\RDefault
Copyright:
License: BSD/GPLv2
Author: Gabor de Mooij and the RedBeanPHP Community
File: RedBeanPHP/Logger/RDefault/Debug.php
Located at Logger/RDefault/Debug.php
Copyright:
copyright (c) G.J.G.T. (Gabor) de Mooij This source file is subject to the BSD/GPLv2 License that is bundled with this source code in the file license.txt.
License: BSD/GPLv2
Author: Gabor de Mooij and the RedBeanPHP Community
File: RedBeanPHP/Logger/RDefault/Debug.php
Located at Logger/RDefault/Debug.php
protected
string
|
#
fillInValue( mixed $value )
Fills in a value of a binding and truncates the resulting string if necessary. |
protected
|
|
protected
string
|
#
normalizeSlots( string $sql )
Normalizes the slots in an SQL string. Replaces question mark slots with :slot1 :slot2 etc. |
protected
array
|
#
normalizeBindings( array $bindings )
Normalizes the bindings. Replaces numeric binding keys with :slot1 :slot2 etc. |
public
|
|
public
|
#
setParamStringLength( integer $len = 20 )
Sets the max string length for the parameter output in SQL queries. Set this value to a reasonable number to keep you SQL queries readable. |
clear(),
getLogs(),
grep(),
setMode()
|
C_LOGGER_ARRAY,
C_LOGGER_ECHO
|
$logs,
$mode
|