コード例 #1
0
function ladybug_dump_class()
{
    $ladybug = getLadybug();
    $currentOptions = $ladybug->getOptions();
    $ladybug->setOption('object_max_nesting_level', 1);
    echo call_user_func_array(array($ladybug, 'dump'), func_get_args());
    $ladybug->setOptions($currentOptions);
}
コード例 #2
0
function ladybug_logger_dump()
{
    $ladybug = getLadybug();
    ladybug_set_format('text');
    $r = call_user_func_array(array($ladybug, 'dump'), func_get_args());
    $log = getMonolog();
    $log->addDebug($r);
    ladybug_set_format('html');
}