{"id":20963863,"url":"https://github.com/codemix/yii2-streamlog","last_synced_at":"2025-07-29T22:12:25.342Z","repository":{"id":28203409,"uuid":"31705915","full_name":"codemix/yii2-streamlog","owner":"codemix","description":"A Yii 2 log target for streams in URL format","archived":false,"fork":false,"pushed_at":"2021-07-01T15:59:08.000Z","size":13,"stargazers_count":52,"open_issues_count":2,"forks_count":7,"subscribers_count":9,"default_branch":"master","last_synced_at":"2024-04-28T15:21:38.256Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/codemix.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-03-05T09:22:13.000Z","updated_at":"2024-02-18T01:32:55.000Z","dependencies_parsed_at":"2022-08-02T11:45:31.794Z","dependency_job_id":null,"html_url":"https://github.com/codemix/yii2-streamlog","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codemix%2Fyii2-streamlog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codemix%2Fyii2-streamlog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codemix%2Fyii2-streamlog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codemix%2Fyii2-streamlog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codemix","download_url":"https://codeload.github.com/codemix/yii2-streamlog/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253785373,"owners_count":21963946,"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":"2024-11-19T02:48:40.046Z","updated_at":"2025-05-12T17:24:03.597Z","avatar_url":"https://github.com/codemix.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Yii2 Streamlog\n==============\n\n[![Latest Stable Version](https://poser.pugx.org/codemix/yii2-streamlog/v/stable.svg)](https://packagist.org/packages/codemix/yii2-streamlog)\n[![Total Downloads](https://poser.pugx.org/codemix/yii2-streamlog/downloads)](https://packagist.org/packages/codemix/yii2-streamlog)\n[![License](https://poser.pugx.org/codemix/yii2-streamlog/license.svg)](https://packagist.org/packages/codemix/yii2-streamlog)\n\nA Yii 2 log target for streams in URL format.\n\nThis log target allows you to log to any of the URL like targets that are\n[supported by PHP](http://php.net/manual/en/wrappers.php). Typical use cases\nare docker containers that often log to `STDOUT` and `STDERR`, in which case\nthe target urls would be `php://stdout` and `php://stderr` respectively.\n\nIt's also possible to use an already opened resource or one of PHP's\n[predefined resource constants](http://php.net/manual/en/features.commandline.io-streams.php)\n(only available in CLI context). See the `$fp` option below.\n\n\n## Installation and Configuration\n\nInstall the package through [composer](http://getcomposer.org):\n\n    composer require codemix/yii2-streamlog\n\nAnd then add this to your application configuration:\n\n```php\n\u003c?php\nreturn [\n    // ...\n    'components' =\u003e [\n        // ...\n        'log' =\u003e [\n            'targets' =\u003e [\n                [\n                    'class' =\u003e 'codemix\\streamlog\\Target',\n                    'url' =\u003e 'php://stdout',\n                    'levels' =\u003e ['info','trace'],\n                    'logVars' =\u003e [],\n                ],\n                [\n                    'class' =\u003e 'codemix\\streamlog\\Target',\n                    'url' =\u003e 'php://stderr',\n                    'levels' =\u003e ['error', 'warning'],\n                    'logVars' =\u003e [],\n                ],\n            ],\n        ],\n```\n\n## Configuration Options\n\n * (*string*) `$url` the URL to use. See http://php.net/manual/en/wrappers.php for details.\n   This gets ignored if `$fp` is configured.\n * (*resource*) `$fp` an open and writeable resource. This can also be one of\n   PHP's predefined resources like `STDOUT` or `STDERR`, which are available in CLI context.\n   (Since 1.2.0)\n * (*string|null*) `$replaceNewline` a string that should replace all newline characters in a log message.\n   Default ist `null` for no replacement. (Since 1.1.0)\n * (*bool*) `$disableTimestamp` whether to omit the timestamp prefix. The default is `false` which\n   will prepend every message with a timestamp generated by `yii\\log\\Target::getTime()`. (Since 1.3.0)\n * (*string*) `$prefixString` a string that will be prefixed to every message at the first position\n   (even before the timestamp - if not disabled). Default is an empty string. (Since 1.3.0)\n * (*bool*) `$enableLocking` whether enable locking with `flock()` on the target. Note, that this is not\n   supported by all stream types. Default is `false`. (Since 1.3.0)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodemix%2Fyii2-streamlog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodemix%2Fyii2-streamlog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodemix%2Fyii2-streamlog/lists"}