我不想将Rollbar集成到我的cakephp项目中,但是我不知道在我的应用程序中应该在哪里包含引用滚动条的代码呢?我用了这段代码
<?php
use \Rollbar\Rollbar;
// Installs global error and exception handlers
$config = array(
// required
'access_token' => 'MY_ACCESS_TOKEN',
// optional - environment name
'environment' => 'production',
);
Rollbar::init($config);但是它只适用于我添加到的页面,所以请帮助我如何配置cakephp应用程序的rollbar。
发布于 2017-06-13 17:40:39
我应该把这段代码放在bootstrap.php中
use \Rollbar\Rollbar;
// Installs global error and exception handlers
$config = array(
// required
'access_token' => 'ACCESS_TOKEN',
// optional - environment name
'environment' => 'production',
// optional - path to directory your code is in. Used for linking stack traces.
'root' => '/Users/brian/www/myapp'
);
Rollbar::init($config);https://stackoverflow.com/questions/44524059
复制相似问题