{"id":28635415,"url":"https://github.com/dmstr/yii2-log","last_synced_at":"2025-07-09T23:09:53.254Z","repository":{"id":24478932,"uuid":"27883019","full_name":"dmstr/yii2-log","owner":"dmstr","description":":x: Yii 2.0 Framework Log Classes","archived":false,"fork":false,"pushed_at":"2015-02-09T22:24:07.000Z","size":176,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-06-12T17:11:22.742Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dmstr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-12-11T17:25:31.000Z","updated_at":"2018-10-20T21:59:55.000Z","dependencies_parsed_at":"2022-08-06T02:01:20.094Z","dependency_job_id":null,"html_url":"https://github.com/dmstr/yii2-log","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/dmstr/yii2-log","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmstr%2Fyii2-log","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmstr%2Fyii2-log/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmstr%2Fyii2-log/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmstr%2Fyii2-log/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dmstr","download_url":"https://codeload.github.com/dmstr/yii2-log/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmstr%2Fyii2-log/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264504981,"owners_count":23618877,"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":[],"created_at":"2025-06-12T17:10:13.712Z","updated_at":"2025-07-09T23:09:52.954Z","avatar_url":"https://github.com/dmstr.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Yii 2.0 Framework Log Classes\n=============================\n\nSyslogTarget writes log to syslog.\n\n\nInstallation\n------------\n\nThe preferred way to install this extension is through [composer](http://getcomposer.org/download/).\n\nRun\n\n```\nphp composer.phar require --prefer-dist dmstr/yii2-log \"*\"\n```\n\n\nUsage\n-----\n\nOnce the extension is installed, simply use it in your code by  :\n\n        'log'\t=\u003e [\n            'targets'\t=\u003e [\n                [\n                    'class'\t\t=\u003e 'dmstr\\log\\SyslogTarget',\n                    'levels'\t=\u003e ['error', 'warning', 'info', 'trace'],\n                    'enabled'\t=\u003e true,\n                    'logVars'\t=\u003e ['_GET','_POST'],\n                ],\n            ],\n        ],\n\n### Settings\n\n\u003e Output is currently send via `error_log()` which allows you to capture output from php-fpm in nginx **for development**.\nThis extension was created mainly for development with docker, fig and vagrant.\n\n\n### Sample output\n\nStart docker container with `fig up` or `docker run`\n\n```\nweb_1 | 2015/01/09 16:13:36 [error] 52#0: *163 FastCGI sent in stderr: \"PHP message: dmstr\\log\\SyslogTarget::export via error_log() ===\nweb_1 | PHP message: \nweb_1 | --- begin ---\nweb_1 | PHP message: [trace][yii\\base\\Application::bootstrap] Bootstrap with schmunk42\\packaii\\Bootstrap::bootstrap()\nweb_1 | PHP message: [trace][yii\\base\\Application::bootstrap] Bootstrap with dektrium\\user\\Bootstrap::bootstrap()\nweb_1 | PHP message: [trace][yii\\base\\Module::getModule] Loading module: user\nweb_1 | PHP message: [trace][yii\\base\\Application::bootstrap] Bootstrap with schmunk42\\giiant\\Bootstrap::bootstrap()\nweb_1 | PHP message: [trace][yii\\base\\Module::getModule] Loading module: gii\nweb_1 | PHP message: [trace][yii\\base\\Application::bootstrap] Bootstrap with schmunk42\\markdocs\\Bootstrap::bootstrap()\nweb_1 | PHP message: [trace][yii\\base\\Application::bootstrap] Bootstrap with yii\\log\\Dispatcher\nweb_1 | PHP message: [trace][yii\\base\\Module::getModule] Loading module: debug\nweb_1 | PHP message: [trace][yii\\base\\Application::bootstrap] Bootstrap with yii\\debug\\Module::bootstrap()\nweb_1 | PHP message: [trace][yii\\base\\Application::bootstrap] Bootstrap with yii\\gii\\Module::bootstrap()\nweb_1 | PHP message: [trace][yii\\web\\UrlManager::parseRequest] No matching URL rules. Using default URL parsing logic.\nweb_1 | PHP message: [trace][yii\\web\\Application::handleRequest] Route requested: ''\n\n[...]\n\nweb_1 | PHP message: [trace][yii\\base\\View::renderFile] Rendering view file: /app/views/layouts/_modal.php\nweb_1 | PHP message: [info][application] $_COOKIE = [\nweb_1 |     'PHPSESSID' =\u003e 'xxxxxxxxxxxxxxxx'\nweb_1 | ]\nweb_1 | \nweb_1 | $_SESSION = [\nweb_1 |     '__flash' =\u003e []\nweb_1 |     '__id' =\u003e 1\nweb_1 |     '__captcha/site/captcha' =\u003e 'xxxxxx'\nweb_1 |     '__captcha/site/captchacount' =\u003e 1\nweb_1 | ]\nweb_1 | PHP message: \nweb_1 | --- end ---\" while reading upstream, client: 192.168.59.3, server: web, request: \"GET / HTTP/1.1\", upstream: \"fastcgi://unix:/var/run/php5-fpm.sock:\", host: \"docker.local:49177\", referrer: \"http://docker.local:49177/docs/42-testing.md\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmstr%2Fyii2-log","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdmstr%2Fyii2-log","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmstr%2Fyii2-log/lists"}