quarta-feira, 14 de setembro de 2016

Yii - habilitar log - para debug

http://learnyii.blogspot.com.br/2011/03/how-to-get-debug-information-about-your.html
http://www.yiiframework.com/forum/index.php/topic/8639-permissions-of-application-log/
http://www.yiiframework.com/doc/guide/1.1/pt/topics.logging
 
 
 
---requer desabilitar parametro *Ccmessag* (algo assim)
http://www.yiiframework.com/extension/yii-debug-toolbar/ 
--- php console interessante mas....nao serve para debug
https://chrome.google.com/webstore/detail/php-console/nfhmhhlpfleoednkpnnnkolmclajemef 

https://www.youtube.com/watch?v=12HRzpKWNuw 
 
 
               'log' => array(
                        'class' => 'CLogRouter',
                        'routes' => array(
                                //array(
                                //        'class'=>'CFileLogRoute',
                                //        'levels'=>'debug, trace, info, error, warning',
                                //),

                                // uncomment the following to show log messages on web pages

                                //array(
                                //        'class'=>'CWebLogRoute',
                                //),

                            //array(
                                //'class'=>'ext.yii-debug-toolbar.YiiDebugToolbarRoute',
                                // Access is restricted by default to the localhost
                                //'ipFilters'=>array('127.0.0.1','10.1.1.194'),
                        //),
                            //array(
                                //'class' => 'ext.phpconsole.PhpConsoleLogRoute',
                                /* Default options:
                                'isEnabled' => true,
                                'handleErrors' => true,
                                'handleExceptions' => true,
                                'sourcesBasePath' => $_SERVER['DOCUMENT_ROOT'],
                                'phpConsolePathAlias' => 'application.vendors.PhpConsole.src.PhpConsole',
                                'registerHelper' => true,
                                'serverEncoding' => null,
                                'headersLimit' => null,
                                'password' => null,
                                'enableSslOnlyMode' => false,
                                'ipMasks' => array(),
                                'dumperLevelLimit' => 5,
                                'dumperItemsCountLimit' => 100,
                                'dumperItemSizeLimit' => 5000,
                                'dumperDumpSizeLimit' => 500000,
                                'dumperDetectCallbacks' => true,
                                'detectDumpTraceAndSource' => true,
                                'isEvalEnabled' => false,
                              */
                        //)

 

0 comentários: