Skip to content

Commit

Permalink
updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
SilverBack Studio committed Jul 5, 2018
1 parent 99dbc83 commit 0fb1a87
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,14 @@ Add the log route to CLogRouter to pipe logs in Google Cloud Logging.
'class'=>'CLogRouter',
'routes'=>array(
array(
'class'=>'ext.yii-stackdriver.StackdriverLogRoute',
'levels'=>'error, warning, info, profile, debug',
),
'class'=>'ext.yii-stackdriver.StackdriverLogRoute',
'levels'=>'error, warning, info, profile, debug',

// override error severity for some exceptions
'errorSeverity' => array(
'exception.CHttpException.404' => 'info',
)
),
...
)
)
Expand All @@ -27,11 +32,14 @@ Add the log route to CLogRouter to pipe logs in Google Cloud Logging.

Customize the class for error handling in config.

```
```php
'errorHandler'=>array(
// use 'site/error' action to display errors
'class'=>'ext.yii-stackdriver.StackdriverErrorHandler',
'errorAction'=>'site/error',

// do not consider 404 as errors/exceptions
'skip404' => true,
),
```

Expand Down

0 comments on commit 0fb1a87

Please sign in to comment.