{"id":33944586,"url":"https://github.com/thesebas/stream2log","last_synced_at":"2026-04-08T12:32:15.195Z","repository":{"id":57068519,"uuid":"60797770","full_name":"thesebas/stream2log","owner":"thesebas","description":null,"archived":false,"fork":false,"pushed_at":"2017-09-07T10:07:11.000Z","size":1,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-23T20:51:12.645Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thesebas.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":"2016-06-09T18:32:54.000Z","updated_at":"2016-06-09T18:36:01.000Z","dependencies_parsed_at":"2022-08-24T14:54:11.755Z","dependency_job_id":null,"html_url":"https://github.com/thesebas/stream2log","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/thesebas/stream2log","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thesebas%2Fstream2log","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thesebas%2Fstream2log/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thesebas%2Fstream2log/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thesebas%2Fstream2log/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thesebas","download_url":"https://codeload.github.com/thesebas/stream2log/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thesebas%2Fstream2log/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31556232,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-08T10:21:54.569Z","status":"ssl_error","status_checked_at":"2026-04-08T10:21:38.171Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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-12-12T17:16:28.836Z","updated_at":"2026-04-08T12:32:15.187Z","avatar_url":"https://github.com/thesebas.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# stream2log\n\nStream to PSR Logger wrapper, example use:\n\n```php\nclass MockLogger extends \\Psr\\Log\\AbstractLogger {\n    public function log($level, $message, array $context = array()) {\n        fprintf(STDERR, \"[%s] [level:%s] %s\", date('c', 0x44884488), $level, strtr($message, $context));\n    }\n}\n\\thesebas\\stream2log\\Wrapper::setup();\n\\thesebas\\stream2log\\Wrapper::registerLogger('mocklog', new MockLogger());\n\ndefine(\"MYERR\", fopen(\"log://mocklog\", 'w'));\n\n// regular STDERR output\nfprintf(STDERR, \"! error message\\n\");    // ! error message\nfprintf(STDERR, \"# warning message\\n\");  // # warning message\nfprintf(STDERR, \"* info message\\n\");     // * info message\n\n// writes to MYERR are redirected to and handled by registered logger\nfprintf(MYERR, \"! error message\\n\");     // [2006-06-08T15:38:48+00:00] [level:error] error message\nfprintf(MYERR, \"# warning message\\n\");   // [2006-06-08T15:38:48+00:00] [level:warning] warning message\nfprintf(MYERR, \"* info message\\n\");      // [2006-06-08T15:38:48+00:00] [level:info] info message\n\n```\n\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthesebas%2Fstream2log","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthesebas%2Fstream2log","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthesebas%2Fstream2log/lists"}