{"id":26934995,"url":"https://github.com/silverbackstudio/yii-stackdriver","last_synced_at":"2026-04-12T22:40:18.969Z","repository":{"id":57050734,"uuid":"139462265","full_name":"silverbackstudio/yii-stackdriver","owner":"silverbackstudio","description":"Send Yii log and exceptions to Stackdriver","archived":false,"fork":false,"pushed_at":"2018-07-05T07:41:05.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-18T09:57:52.132Z","etag":null,"topics":["google","google-cloud","google-cloud-logging","logging","php","stackdriver","yii"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/silverbackstudio.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-07-02T15:38:18.000Z","updated_at":"2018-07-05T07:39:58.000Z","dependencies_parsed_at":"2022-08-24T05:10:47.863Z","dependency_job_id":null,"html_url":"https://github.com/silverbackstudio/yii-stackdriver","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/silverbackstudio%2Fyii-stackdriver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/silverbackstudio%2Fyii-stackdriver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/silverbackstudio%2Fyii-stackdriver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/silverbackstudio%2Fyii-stackdriver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/silverbackstudio","download_url":"https://codeload.github.com/silverbackstudio/yii-stackdriver/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246802624,"owners_count":20836373,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["google","google-cloud","google-cloud-logging","logging","php","stackdriver","yii"],"created_at":"2025-04-02T11:16:43.119Z","updated_at":"2026-04-12T22:40:13.925Z","avatar_url":"https://github.com/silverbackstudio.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Yii 1.x - Google Cloud (Stackdriver) Monitoring \n\n## Installation\n\nClone this repository in `protected/extensions/yii-stackdriver`.\n\nLaunch a `composer update` to download required dependencies.\n\n## Config\n\nAdd the log route to CLogRouter to pipe logs in Google Cloud Logging.\n\n```php\n\n'log'=\u003earray(\n\t'class'=\u003e'CLogRouter',\n\t'routes'=\u003earray(\n\t\tarray(\n\t\t\t'class'=\u003e'ext.yii-stackdriver.StackdriverLogRoute',\n\t\t\t'levels'=\u003e'error, warning, info, profile, debug',\n\t\t\t\n\t\t\t// override error severity for some exceptions\n\t\t\t'errorSeverity' =\u003e array(\n\t\t\t\t'exception.CHttpException.404' =\u003e 'info',\n\t\t\t)\n\t\t),\n\t\t...\n\t)\n)\n\n```\n\nCustomize the class for error handling in config.\n\n```php\n'errorHandler'=\u003earray(\n\t// use 'site/error' action to display errors\n\t'class'=\u003e'ext.yii-stackdriver.StackdriverErrorHandler',\n\t'errorAction'=\u003e'site/error',\n\t\n\t// do not consider 404 as errors/exceptions\n\t'skip404' =\u003e true,\n),\n```\n\nAuthorize the GCE VM service account with the following privileges:\n\n* Error Reporting Author\n* Logs Author\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsilverbackstudio%2Fyii-stackdriver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsilverbackstudio%2Fyii-stackdriver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsilverbackstudio%2Fyii-stackdriver/lists"}